Big refactor, test first

This commit is contained in:
Lillian Violet 2024-02-07 13:50:03 +01:00
parent fa6a06c51e
commit f7b36ba224
30 changed files with 76 additions and 30 deletions

View file

@ -0,0 +1,21 @@
{
inputs,
outputs,
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 = {
enable = true;
downloadDir = "/var/lib/media";
rpcListenPort = 6969;
rpcSecretFile = config.sops.secrets."rpcSecret".path;
};
}