From 4b97feb8e61ef2762a5df3691f612f2a0048265b Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Mon, 16 Dec 2024 22:11:41 +0100 Subject: [PATCH] Allow changing Jellyseerr config dir --- modules/services/jellyseerr.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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; + }; }; }; }