Skip to content

Commit

Permalink
Allow changing Jellyseerr config dir
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzapim committed Dec 18, 2024
1 parent 0c0c458 commit 3a0a052
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion modules/services/jellyseerr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ in
example = 8080;
default = 5055;
};

configDir = 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 {
Expand All @@ -31,7 +40,10 @@ in

environment = {
systemPackages = [ cfg.package ];
variables.PORT = builtins.toString cfg.port;
variables = {
PORT = builtins.toString cfg.port;
CONFIG_DIRECTORY = cfg.configDir;
};
};
};
}

0 comments on commit 3a0a052

Please sign in to comment.