diff --git a/configuration.nix b/configuration.nix index 7ddcf5a..f134461 100755 --- a/configuration.nix +++ b/configuration.nix @@ -87,11 +87,12 @@ services.openssh.enable = true; services.openssh.settings.PasswordAuthentication = false; + networking.firewall.enable = true; # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; + networking.firewall.allowedTCPPorts = [ + 1972 # SSH + ]; # networking.firewall.allowedUDPPorts = [ ... ]; - # Or disable the firewall altogether. - # networking.firewall.enable = false; # Copy the NixOS configuration file and link it from the resulting system # (/run/current-system/configuration.nix). This is useful in case you