2023-10-09 10:44:07 -07:00
|
|
|
{ config, ... }:
|
2024-02-26 21:06:48 -08:00
|
|
|
|
2024-04-12 13:04:17 -07:00
|
|
|
let
|
|
|
|
|
const = config.constants;
|
|
|
|
|
ports = const.port;
|
|
|
|
|
usr = const.userName;
|
|
|
|
|
in
|
2023-10-09 10:44:07 -07:00
|
|
|
{
|
|
|
|
|
hardware.opengl.enable = true;
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
sops.secrets.aria2 = { };
|
|
|
|
|
|
|
|
|
|
users.users.${usr}.extraGroups = [ config.systemd.services.aria2.serviceConfig.Group ];
|
2023-10-09 10:44:07 -07:00
|
|
|
}
|