diff options
| author | Caroline Larimore <caroline@larimo.re> | 2025-05-16 16:58:51 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2025-05-16 16:58:51 -0700 |
| commit | 5264ba4eedd88ab68bd67c482bbe4398ad9385b5 (patch) | |
| tree | 78d1c720ee40d61e345307b922cd66ffbfa3f3de /modules/nixos | |
| parent | 3c070bcf4fdd913644bd95aad2dc9b43cbd892eb (diff) | |
copenhagen: allow ssh on port 22
Diffstat (limited to 'modules/nixos')
| -rw-r--r-- | modules/nixos/services/ssh/default.nix | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/nixos/services/ssh/default.nix b/modules/nixos/services/ssh/default.nix index e09a7e3..283b4f3 100644 --- a/modules/nixos/services/ssh/default.nix +++ b/modules/nixos/services/ssh/default.nix @@ -7,17 +7,17 @@ in { options.${namespace}.services.ssh = with types; { enable = mkEnableOption "ssh server"; - port = mkOption { - type = types.port; - default = 22; - description = "ssh server port"; + ports = mkOption { + type = listOf port; + default = [ 22 ]; + description = "ssh server ports"; }; }; config = mkIf cfg.enable { services.openssh = { enable = true; - ports = [ cfg.port ]; + ports = cfg.ports; settings = { PermitRootLogin = "no"; |