default nixos config: add firewall options.

By showing how to open ports in the firewall and how to disable it, we make users aware that there is a firewall enabled by default.
This commit is contained in:
Guillaume Maudoux 2017-02-01 10:33:58 +01:00 committed by Robin Gloster
parent b02799a020
commit 698f178d4e

View File

@ -588,6 +588,12 @@ $bootLoaderConfig
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# Enable CUPS to print documents.
# services.printing.enable = true;