remove flaresolverr and add state management for jellyseerr

This commit is contained in:
Rohan Datar
2025-01-11 16:54:21 -06:00
parent 77682e0ae1
commit 3f98c61393
3 changed files with 25 additions and 116 deletions
+20
View File
@@ -23,6 +23,25 @@ in {
package = mkPackageOption pkgs "jellyseerr" {};
stateDir = mkOption {
type = types.path;
default = "${nixarr.stateDir}/jellyseerr";
defaultText = literalExpression ''"''${nixarr.stateDir}/jellyseerr"'';
example = "/nixarr/.state/jellyseerr";
description = ''
The location of the state directory for the Jellyseerr service.
> **Warning:** Setting this to any path, where the subpath is not
> owned by root, will fail! For example:
>
> ```nix
> stateDir = /home/user/nixarr/.state/jellyseerr
> ```
>
> Is not supported, because `/home/user` is owned by `user`.
'';
};
port = mkOption {
type = types.port;
default = defaultPort;
@@ -73,6 +92,7 @@ in {
package = cfg.package;
openFirewall = cfg.openFirewall;
port = cfg.port;
configDir = cfg.stateDir;
};
# Enable and specify VPN namespace to confine service in.