Add Shadowsocks proxy service

This commit is contained in:
pazpi 2025-03-16 17:53:06 +01:00
parent 854b6374d7
commit 26165af972
7 changed files with 70 additions and 0 deletions

View file

@ -199,4 +199,16 @@ in
];
# specialArgs = { };
};
shadowshocks = nixpkgs.lib.nixosSystem {
pkgs = pkgs "x86_64-linux";
modules = [
myModules
proxmoxModule
./shadowshocks
agenix.nixosModules.default
];
# specialArgs = { };
};
}

View file

@ -116,6 +116,16 @@ in
];
};
shadowshocks.deployment = {
targetHost = hosts.shadowshocks;
tags = [
"lxc"
"bacco"
"shadowshocks"
];
};
deadbeef.deployment = {
allowLocalDeployment = true;
targetHost = null;

View file

@ -12,6 +12,7 @@
colmena = "colmena.internal";
dns01 = "192.168.1.2";
dns02 = "192.168.1.3";
shadowshocks = "shadowshocks.internal";
};
domains = {
public = "pasetto.me";

View file

@ -0,0 +1,29 @@
{
config,
pkgs,
lib,
...
}:
{
age.secrets.shadowshocks-password.file = ../../secrets/shadowshocks-password.age;
my = {
utils = {
commons.enable = true;
commons.gc.enable = true;
lxc-standard.enable = true;
};
virtualisation.proxmox.enable = true;
};
services.shadowsocks = {
enable = true;
passwordFile = config.age.secrets.shadowshocks-password.path;
port = 8388;
};
system.stateVersion = "24.11";
}