nixos-config/linux/nebula/jellyfin.nix
2024-08-31 21:16:40 -07:00

42 lines
803 B
Nix

{
config,
pkgs,
...
}:
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];
}