From b161c94c34e755a8cb784e6fac7fcb1fe4dffb7a Mon Sep 17 00:00:00 2001 From: rasmus-kirk Date: Sat, 14 Jun 2025 15:58:07 +0200 Subject: [PATCH] Small fix --- nixarr/jellyseerr/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/nixarr/jellyseerr/default.nix b/nixarr/jellyseerr/default.nix index b84b681..9f0c654 100644 --- a/nixarr/jellyseerr/default.nix +++ b/nixarr/jellyseerr/default.nix @@ -194,9 +194,14 @@ in { }; }; - networking.firewall = mkIf cfg.expose.https.enable { - allowedTCPPorts = [80 443]; - }; + networking.firewall = mkMerge [ + (mkIf cfg.expose.https.enable { + allowedTCPPorts = [80 443]; + }) + (mkIf cfg.openFirewall { + allowedTCPPorts = [cfg.port]; + }) + ]; util-nixarr.upnp = mkIf cfg.expose.https.upnp.enable { enable = true;