31 lines
740 B
Nix
31 lines
740 B
Nix
{
|
|
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}
|
|
'';
|
|
}
|