Various updates
This commit is contained in:
parent
26165af972
commit
375a85e0e7
25 changed files with 291 additions and 167 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue