From dea646bb30457dda786d3b5444d71a6d1d768df4 Mon Sep 17 00:00:00 2001 From: zuma Date: Wed, 5 Nov 2025 10:17:09 +0100 Subject: [PATCH] Add firewall + open port for SSH --- configuration.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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