hosts/vps2: init
All checks were successful
Check flake / build-amd64-linux (push) Successful in 1m26s

This commit is contained in:
2025-07-31 21:59:59 +01:00
parent 595f0cc35d
commit c36dfec8ac
6 changed files with 130 additions and 5 deletions

View File

@@ -17,6 +17,14 @@ in
default = false;
example = true;
};
isExitNode = lib.mkOption {
default = false;
example = true;
};
useExitNode = lib.mkOption {
default = false;
example = true;
};
restrictSSH = lib.mkOption {
default = true;
example = true;
@@ -37,7 +45,8 @@ in
extraUpFlags = [
"--login-server"
headscale
];
]
++ (if cfg.isExitNode then [ "--advertise-exit-node" ] else [ ]);
};
services.openssh.openFirewall = !cfg.restrictSSH;