diff options
author | Guillaume Maudoux <layus.on@gmail.com> | 2017-02-01 10:33:58 +0100 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-02-03 16:45:11 +0100 |
commit | 698f178d4ed1f04f58936fcfb1a0c0753ee69679 (patch) | |
tree | 2b75778cfb01079f0b16b2ae840f624211781ca2 /nixos/modules/installer/tools | |
parent | b02799a020c1742ed0a18b510c8ebf24c91eaaa5 (diff) | |
download | nixlib-698f178d4ed1f04f58936fcfb1a0c0753ee69679.tar nixlib-698f178d4ed1f04f58936fcfb1a0c0753ee69679.tar.gz nixlib-698f178d4ed1f04f58936fcfb1a0c0753ee69679.tar.bz2 nixlib-698f178d4ed1f04f58936fcfb1a0c0753ee69679.tar.lz nixlib-698f178d4ed1f04f58936fcfb1a0c0753ee69679.tar.xz nixlib-698f178d4ed1f04f58936fcfb1a0c0753ee69679.tar.zst nixlib-698f178d4ed1f04f58936fcfb1a0c0753ee69679.zip |
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.
Diffstat (limited to 'nixos/modules/installer/tools')
-rw-r--r-- | nixos/modules/installer/tools/nixos-generate-config.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index e17c02d13745..0a5624ff6a3f 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -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; |