updated endlessh.nix
This commit is contained in:
parent
5398ab38c9
commit
452f751dc9
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user