NixToSee/modules/firewall.nix

7 lines
241 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;
}