make sure web ports are allowed

This commit is contained in:
Joakim Repomaa
2025-02-07 18:16:16 +02:00
committed by Joakim Repomaa
parent e2f8d1eeff
commit 5c456d4a50
3 changed files with 7 additions and 10 deletions

View File

@@ -121,11 +121,10 @@
settings.PasswordAuthentication = false;
};
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [ 22 ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
modules.firewall = {
enable = true;
allInterfaces = [ "ssh" ];
};
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you