updated endlessh.nix

This commit is contained in:
Richie Cahill 2024-04-10 19:01:31 -04:00
parent 5398ab38c9
commit 452f751dc9

View File

@ -3,13 +3,13 @@
config = { config = {
services = { services = {
endlessh-go = lib.mkIf (!builtins.elem 22 config.services.openssh.ports) { endlessh-go = lib.mkIf (!builtins.elem 22 config.services.openssh.ports) {
enable = true; enable = lib.mkDefault true;
port = 22; port = 22;
}; };
}; };
networking.firewall = lib.mkIf config.services.openssh.enable { networking.firewall = lib.mkIf config.services.endlessh-go.enable {
allowedTCPPorts = config.services.openssh.ports ++ [ 22 ]; allowedTCPPorts = 22;
}; };
}; };
} }