2024-01-04 13:32:13 +01:00
|
|
|
{
|
2024-02-05 18:23:09 +01:00
|
|
|
inputs,
|
|
|
|
outputs,
|
2024-01-04 13:32:13 +01:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2024-01-04 22:30:38 +01:00
|
|
|
users.users.aria2.group = "aria2";
|
|
|
|
users.groups.aria2 = {};
|
|
|
|
users.users.aria2.isSystemUser = true;
|
|
|
|
|
2024-02-05 18:23:09 +01:00
|
|
|
sops.secrets."rpcSecret".mode = "0440";
|
|
|
|
sops.secrets."rpcSecret".owner = config.users.users.aria2.name;
|
|
|
|
|
2024-01-06 16:54:15 +01:00
|
|
|
services.aria2 = {
|
|
|
|
enable = true;
|
|
|
|
downloadDir = "/var/lib/media";
|
|
|
|
rpcListenPort = 6969;
|
2024-02-05 18:23:09 +01:00
|
|
|
rpcSecretFile = config.sops.secrets."rpcSecret".path;
|
2024-01-04 22:25:34 +01:00
|
|
|
};
|
2024-01-04 13:32:13 +01:00
|
|
|
}
|