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