diff --git a/nixos/openssh.nix b/nixos/openssh.nix index 651763b..4890894 100644 --- a/nixos/openssh.nix +++ b/nixos/openssh.nix @@ -1,3 +1,4 @@ +{ config, ... }: { services.openssh = { enable = true; @@ -12,5 +13,5 @@ }; }; - networking.firewall.allowedTCPPorts = [ 22 ]; + networking.firewall.allowedTCPPorts = config.services.openssh.ports; }