summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixos/tente-configuration.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/nixos/tente-configuration.nix b/nixos/tente-configuration.nix
index 334089f..8254fb0 100644
--- a/nixos/tente-configuration.nix
+++ b/nixos/tente-configuration.nix
@@ -61,6 +61,13 @@
# enableSSHSupport = true;
# };
+ # Open ports in the firewall.
+ networking.firewall.allowedTCPPorts = [
+ # Enabling openssh automatically opens its port in the firewall.
+ # For all other services we need to manually list the ports here.
+ ];
+ networking.firewall.allowedUDPPorts = [];
+
# List services that you want to enable:
# Enable the OpenSSH daemon.
@@ -73,12 +80,6 @@
dataDir = "/srv/gitolite";
};
- # Open ports in the firewall.
- # networking.firewall.allowedTCPPorts = [ ... ];
- # networking.firewall.allowedUDPPorts = [ ... ];
- # Or disable the firewall altogether.
- # networking.firewall.enable = false;
-
# Copy the NixOS configuration file and link it from the resulting system
# (/run/current-system/configuration.nix). This is useful in case you
# accidentally delete configuration.nix.