NixToSee/modules/firewall.nix
2025-04-12 14:53:12 +02:00

7 lines
234 B
Nix

{
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [8080 10001 10002];
networking.firewall.allowedUDPPorts = [8080 10001 10002];
# Or disable the firewall altogether.
networking.firewall.enable = false;
}