nixos-config/linux/nebula/jellyfin.nix
2024-09-01 01:03:49 -07:00

38 lines
789 B
Nix

{config, ...}:
with config.constants; {
hardware.graphics.enable = true;
services = {
aria2 = {
enable = true;
rpcSecretFile = config.sops.secrets.aria2.path;
settings = {
check-integrity = true;
max-concurrent-downloads = 16;
rpc-listen-all = true;
rpc-listen-port = port.aria2;
};
};
jellyfin = {
enable = true;
user = userName;
};
jellyseerr = {
enable = true;
port = port.jellyseerr;
};
prowlarr.enable = true;
radarr = {
enable = true;
user = userName;
};
sonarr = {
enable = true;
user = userName;
};
};
sops.secrets.aria2 = {};
users.users.${userName}.extraGroups = [config.systemd.services.aria2.serviceConfig.Group];
}