diff --git a/modules/services/jellyseerr.nix b/modules/services/jellyseerr.nix index 77044b9..2abb407 100644 --- a/modules/services/jellyseerr.nix +++ b/modules/services/jellyseerr.nix @@ -20,6 +20,15 @@ in example = 8080; default = 5055; }; + + config_directory = lib.mkOption { + description = '' + The directory to save run-time configuration. + ''; + type = lib.types.str; + example = "/jellyseerr"; + default = "/var/lib/jellyseerr"; + }; }; config = lib.mkIf cfg.enable { @@ -31,7 +40,10 @@ in environment = { systemPackages = [ cfg.package ]; - variables.PORT = builtins.toString cfg.port; + variables = { + PORT = builtins.toString cfg.port; + CONFIG_DIRECTORY = cfg.config_directory; + }; }; }; }