diff options
Diffstat (limited to 'sys/auth/openssh.nix')
| -rw-r--r-- | sys/auth/openssh.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/auth/openssh.nix b/sys/auth/openssh.nix index 3bc3a78..87c6299 100644 --- a/sys/auth/openssh.nix +++ b/sys/auth/openssh.nix @@ -19,6 +19,11 @@ in }; }) [ "ecdsa" "ed25519" "rsa" ]); + shiftPortNumber = mkOption { + type = types.bool; + default = true; + }; + withDeployKeys = mkOption { type = types.bool; default = false; @@ -39,7 +44,7 @@ in services.openssh = { enable = true; openFirewall = true; - ports = [ 2234 ]; + ports = mkIf cfg.shiftPortNumber [ 2234 ]; startWhenNeeded = !config.services.fail2ban.enable; hostKeys = map |
