remove aria2 daemon
This commit is contained in:
parent
5f6b46008d
commit
14a697a02e
3 changed files with 4 additions and 41 deletions
|
@ -2,13 +2,15 @@ _: {
|
||||||
programs.aria2 = {
|
programs.aria2 = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
bt-require-crypto = true;
|
|
||||||
bt-tracker = "udp://tracker.opentrackr.org:1337/announce";
|
|
||||||
continue = true;
|
continue = true;
|
||||||
max-connection-per-server = 8;
|
max-connection-per-server = 8;
|
||||||
split = 8;
|
split = 8;
|
||||||
min-split-size = "1M";
|
min-split-size = "1M";
|
||||||
file-allocation = "falloc";
|
file-allocation = "falloc";
|
||||||
|
check-integrity = true;
|
||||||
|
console-log-level = "warn";
|
||||||
|
log-level = "notice";
|
||||||
|
log = "-";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,6 +1,5 @@
|
||||||
_: {
|
_: {
|
||||||
imports = [
|
imports = [
|
||||||
./aria2c.nix
|
|
||||||
./gpg-agent.nix
|
./gpg-agent.nix
|
||||||
./transmission.nix
|
./transmission.nix
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue