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 = {
services = {
endlessh-go = lib.mkIf (!builtins.elem 22 config.services.openssh.ports) {
enable = true;
enable = lib.mkDefault true;
port = 22;
};
};
networking.firewall = lib.mkIf config.services.openssh.enable {
allowedTCPPorts = config.services.openssh.ports ++ [ 22 ];
networking.firewall = lib.mkIf config.services.endlessh-go.enable {
allowedTCPPorts = 22;
};
};
}