remove aria2 daemon

This commit is contained in:
Adithya 2024-03-29 13:15:21 +05:30
parent 5f6b46008d
commit 14a697a02e
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C
3 changed files with 4 additions and 41 deletions

View file

@ -2,13 +2,15 @@ _: {
programs.aria2 = {
enable = true;
settings = {
bt-require-crypto = true;
bt-tracker = "udp://tracker.opentrackr.org:1337/announce";
continue = true;
max-connection-per-server = 8;
split = 8;
min-split-size = "1M";
file-allocation = "falloc";
check-integrity = true;
console-log-level = "warn";
log-level = "notice";
log = "-";
};
};
}

View file

@ -1,38 +0,0 @@
{ config
, pkgs
, secrets
, ...
}: {
systemd.user.services = {
ariang = {
Unit = {
Description = "AriaNg: Web frontend for aria2c";
After = [ "aria2c.service" ];
};
Install = {
WantedBy = [ "default.target" ];
};
Service = {
Type = "simple";
ExecStart = ''
${pkgs.merecat}/bin/merecat -n -p 6801 "${pkgs.ariang}/share/ariang"
'';
};
};
aria2c = {
Unit = {
Description = "Aria2c Download Manager";
Documentation = [ "man:aria2c(1)" ];
};
Install = {
WantedBy = [ "default.target" "ariang.service" ];
};
Service = {
Type = "simple";
ExecStart = ''
${pkgs.aria}/bin/aria2c --console-log-level=warn --log-level=notice --enable-rpc --rpc-secret="${secrets.aria2_config.rpc_secret}" --rpc-listen-port=6800 --rpc-allow-origin-all --rpc-listen-all --dir="${config.xdg.userDirs.download}"
'';
};
};
};
}

View file

@ -1,6 +1,5 @@
_: {
imports = [
./aria2c.nix
./gpg-agent.nix
./transmission.nix
];