Changed firewall settings

This commit is contained in:
rasmus-kirk
2024-03-12 19:03:45 +01:00
parent 39f6357a0a
commit 55f11fddb4
8 changed files with 73 additions and 2 deletions
+9
View File
@@ -24,6 +24,14 @@ in {
description = "The state directory for Sonarr.";
};
openFirewall = mkOption {
type = types.bool;
defaultText = literalExpression ''"''${nixarr.vpn.enable}"'';
default = !cfg.vpn.enable;
example = true;
description = "Open firewall for Sonarr";
};
vpn.enable = mkOption {
type = types.bool;
default = false;
@@ -55,6 +63,7 @@ in {
enable = cfg.enable;
user = "sonarr";
group = "media";
openFirewall = cfg.openFirewall;
dataDir = cfg.stateDir;
};