nixos-config/linux/nebula/jellyfin.nix

46 lines
843 B
Nix
Raw Normal View History

2024-08-14 11:14:20 -07:00
{
config,
pkgs,
...
}: let
2024-04-12 13:04:17 -07:00
const = config.constants;
ports = const.port;
usr = const.userName;
2024-08-14 11:14:20 -07:00
in {
2024-06-24 14:13:12 -07:00
hardware.graphics.enable = true;
2023-10-09 10:44:07 -07:00
2024-04-12 13:04:17 -07:00
services = {
aria2 = {
enable = true;
rpcSecretFile = config.sops.secrets.aria2.path;
2024-06-15 17:37:25 -07:00
settings = {
check-integrity = true;
max-concurrent-downloads = 16;
rpc-listen-all = true;
rpc-listen-port = ports.aria2;
};
2024-04-12 13:04:17 -07:00
};
2024-04-12 12:05:44 -07:00
jellyfin = {
enable = true;
2024-04-12 13:04:17 -07:00
user = usr;
2024-04-12 12:05:44 -07:00
};
jellyseerr = {
enable = true;
2024-04-12 13:04:17 -07:00
port = ports.jellyseerr;
2024-04-12 12:05:44 -07:00
};
2024-04-12 15:03:20 -07:00
prowlarr.enable = true;
2024-04-12 12:38:19 -07:00
radarr = {
enable = true;
2024-04-12 13:04:17 -07:00
user = usr;
};
sonarr = {
enable = true;
user = usr;
2024-04-12 12:38:19 -07:00
};
2023-10-09 10:44:07 -07:00
};
2024-04-12 13:04:17 -07:00
2024-08-14 11:14:20 -07:00
sops.secrets.aria2 = {};
2024-04-12 13:04:17 -07:00
2024-08-14 11:14:20 -07:00
users.users.${usr}.extraGroups = [config.systemd.services.aria2.serviceConfig.Group];
2023-10-09 10:44:07 -07:00
}