about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/minidlna.nix5
-rw-r--r--nixos/modules/services/printing/cupsd.nix3
-rw-r--r--nixos/modules/services/x11/terminal-server.nix2
3 files changed, 0 insertions, 10 deletions
diff --git a/nixos/modules/services/networking/minidlna.nix b/nixos/modules/services/networking/minidlna.nix
index e31d77f13fed..73fcb1eeea8e 100644
--- a/nixos/modules/services/networking/minidlna.nix
+++ b/nixos/modules/services/networking/minidlna.nix
@@ -55,11 +55,6 @@ in
 
   config = mkIf cfg.enable {
 
-    # Running minidlna only makes sense for serving files to the
-    # outside, so open up the required ports by default.
-    networking.firewall.allowedTCPPorts = [ port ];
-    networking.firewall.allowedUDPPorts = [ 1900 ]; # SSDP
-
     services.minidlna.config =
       ''
         port=${toString port}
diff --git a/nixos/modules/services/printing/cupsd.nix b/nixos/modules/services/printing/cupsd.nix
index 56ae399c9011..1be3587c3bb9 100644
--- a/nixos/modules/services/printing/cupsd.nix
+++ b/nixos/modules/services/printing/cupsd.nix
@@ -223,9 +223,6 @@ in
         </Policy>
       '';
 
-    # Allow CUPS to receive IPP printer announcements via UDP.
-    networking.firewall.allowedUDPPorts = [ 631 ];
-
     security.pam.services.cups = {};
 
   };
diff --git a/nixos/modules/services/x11/terminal-server.nix b/nixos/modules/services/x11/terminal-server.nix
index 72ecb8fe2fd7..bf9c3435503d 100644
--- a/nixos/modules/services/x11/terminal-server.nix
+++ b/nixos/modules/services/x11/terminal-server.nix
@@ -42,8 +42,6 @@ in
         Xaccess=${pkgs.writeText "Xaccess" "localhost"}
       '';
 
-    networking.firewall.allowedTCPPorts = [ 5900 ];
-
     systemd.sockets.terminal-server =
       { description = "Terminal Server Socket";
         wantedBy = [ "sockets.target" ];