Various updates

This commit is contained in:
pazpi 2025-03-16 17:54:42 +01:00
parent 26165af972
commit 375a85e0e7
25 changed files with 291 additions and 167 deletions

View file

@ -4,12 +4,27 @@
lib,
...
}:
let
shadowshocks-port = 8388;
p = import ../parameters.nix;
in
{
age.secrets.shadowshocks-password.file = ../../secrets/shadowshocks-password.age;
age.secrets = {
shadowshocks-password.file = ../../secrets/shadowshocks-password.age;
tailscale-authKey.file = ../../secrets/tailscale-authKey.age;
};
my = {
networking = {
tailscale = {
enable = true;
magicDNSDomain = p.domains.tsDns;
authKeyFile = config.age.secrets.tailscale-authKey.path;
};
};
utils = {
commons.enable = true;
commons.gc.enable = true;
@ -22,8 +37,11 @@
services.shadowsocks = {
enable = true;
passwordFile = config.age.secrets.shadowshocks-password.path;
port = 8388;
port = shadowshocks-port;
};
# open shadownsocks port
networking.firewall.allowedTCPPorts = [ shadowshocks-port ];
system.stateVersion = "24.11";
}