feat(media): add arr stack (sonarr, radarr, bazarr, prowlarr, jellyseerr)
This commit is contained in:
30
services/jellyseerr.nix
Normal file
30
services/jellyseerr.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
service_configs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
(lib.serviceMountWithZpool "jellyseerr" service_configs.zpool_ssds [
|
||||
service_configs.jellyseerr.configDir
|
||||
])
|
||||
];
|
||||
|
||||
services.jellyseerr = {
|
||||
enable = true;
|
||||
port = service_configs.ports.jellyseerr;
|
||||
configDir = service_configs.jellyseerr.configDir;
|
||||
};
|
||||
|
||||
# Allow DynamicUser to write to custom configDir on ZFS
|
||||
systemd.services.jellyseerr.serviceConfig.ReadWritePaths = [
|
||||
service_configs.jellyseerr.configDir
|
||||
];
|
||||
|
||||
services.caddy.virtualHosts."jellyseerr.${service_configs.https.domain}".extraConfig = ''
|
||||
import ${config.age.secrets.caddy_auth.path}
|
||||
reverse_proxy :${builtins.toString service_configs.ports.jellyseerr}
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user