diff --git a/hosts/snowbelle/configuration.nix b/hosts/snowbelle/configuration.nix index 97064b8..ca9af7d 100644 --- a/hosts/snowbelle/configuration.nix +++ b/hosts/snowbelle/configuration.nix @@ -28,6 +28,7 @@ services = { jellyfin.enable = true; sonarr.enable = true; + sonarr.port = 7104; }; }; diff --git a/modules/homelab/services/arr/sonarr/default.nix b/modules/homelab/services/arr/sonarr/default.nix index dbeb5a7..b1ed0da 100644 --- a/modules/homelab/services/arr/sonarr/default.nix +++ b/modules/homelab/services/arr/sonarr/default.nix @@ -7,12 +7,12 @@ in { options.modules.services.sonarr = { enable = lib.mkEnableOption "enables sonarr"; -# extra options -# mode = lib.mkOption { -# type = lib.types.enum [ "server" "client" ]; -# default = "client"; -# description = "whether syncthing should run as a client (user) or server (system-wide)."; -# }; + + mode = lib.mkOption { + port = lib.types.int; + default = 7105; + description = "define port for sonarr"; + }; }; @@ -40,7 +40,7 @@ in group = "sonarr"; dataDir = "/var/lib/sonarr"; settings = { - server.port = 7105; # default: 8989 + server.port = port; # default: 8989 }; };