NixOS-Config/nixos/server/package-configs/aria2/default.nix

22 lines
434 B
Nix
Raw Normal View History

2024-01-04 13:32:13 +01:00
{
inputs,
outputs,
2024-01-04 13:32:13 +01:00
config,
pkgs,
...
}: {
users.users.aria2.group = "aria2";
users.groups.aria2 = {};
users.users.aria2.isSystemUser = true;
sops.secrets."rpcSecret".mode = "0440";
sops.secrets."rpcSecret".owner = config.users.users.aria2.name;
services.aria2 = {
2024-02-09 21:53:50 +01:00
enable = true;
downloadDir = "/var/lib/media";
rpcListenPort = 6969;
rpcSecretFile = config.sops.secrets."rpcSecret".path;
2024-01-04 22:25:34 +01:00
};
2024-01-04 13:32:13 +01:00
}