diff --git a/modules/ssh/default.nix b/modules/ssh/default.nix index 3587467..77c0015 100644 --- a/modules/ssh/default.nix +++ b/modules/ssh/default.nix @@ -1,9 +1,12 @@ -{ ... }: +{ lib, ... }: +let + ports = lib.lists.singleton 2222; +in { services.openssh = { enable = true; startWhenNeeded = true; - ports = [ 2222 ]; + ports = ports; openFirewall = true; settings = { AllowUsers = [ "tdback" ];