diff options
| author | caley <195605706+cqley@users.noreply.github.com> | 2026-08-11 22:48:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-11 22:48:42 +0200 |
| commit | 9d1d67592b2e49f2cecbcd7ad248f6c5cb42b647 (patch) | |
| tree | e6dc35bb022b15ce96c3eb5ce2be1481217e1f6a /nixos/modules | |
| parent | acdaaabe74919b53243caa2b22daa0fa94a1b75e (diff) | |
blurppppppppp
Diffstat (limited to 'nixos/modules')
| -rw-r--r-- | nixos/modules/misc/ariang.nix (renamed from nixos/modules/misc/dm.nix) | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/nixos/modules/misc/dm.nix b/nixos/modules/misc/ariang.nix index 4e99882..d9ab595 100644 --- a/nixos/modules/misc/dm.nix +++ b/nixos/modules/misc/ariang.nix @@ -1,7 +1,12 @@ { pkgs, ... }: { + systemd.tmpfiles.rules = [ + "d /var/lib/aria2 0755 cat users -" + "d /home/cat/downloads 0755 cat users -" + ]; + services.aria2 = { enable = true; - rpcSecretFile = "/etc/nixos/secrets/aria2"; + rpcSecretFile = "/var/lib/aria2/secret"; settings = { dir = "/home/cat/downloads"; rpc-allow-origin-all = true; @@ -18,4 +23,8 @@ ProtectHome = pkgs.lib.mkForce false; DynamicUser = pkgs.lib.mkForce false; }; + + environment.systemPackages = with pkgs; [ + ariang + ]; } |
