mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 21:16:35 +05:30
add aria2
This commit is contained in:
44
modules/home-manager/aria2/default.nix
Normal file
44
modules/home-manager/aria2/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{...}: {
|
||||
programs.aria2 = {
|
||||
enable = true;
|
||||
settings = {
|
||||
file-allocation = "none";
|
||||
log-level = "warn";
|
||||
max-connection-per-server = 16;
|
||||
min-split-size = "1M";
|
||||
human-readable = true;
|
||||
reuse-uri = true;
|
||||
rpc-save-upload-metadata = true;
|
||||
max-file-not-found = 0;
|
||||
remote-time = true;
|
||||
async-dns = true;
|
||||
stop = 0;
|
||||
allow-piece-length-change = true;
|
||||
optimize-concurrent-downloads = true;
|
||||
deferred-input = true;
|
||||
continue = true;
|
||||
check-integrity = true;
|
||||
realtime-chunk-checksum = true;
|
||||
piece-length = "1M";
|
||||
split = 16;
|
||||
# Seconds:
|
||||
save-session-interval = 60;
|
||||
# Caches in memory
|
||||
disk-cache = "32M";
|
||||
save-not-found = true;
|
||||
download-result = "full";
|
||||
truncate-console-readout = true;
|
||||
retry-wait = 30;
|
||||
max-tries = 15;
|
||||
enable-color = true;
|
||||
enable-http-keep-alive = true;
|
||||
enable-http-pipelining = true;
|
||||
http-accept-gzip = true;
|
||||
follow-torrent = true;
|
||||
bt-save-metadata = true;
|
||||
seed-time = 0;
|
||||
bt-load-saved-metadata = true;
|
||||
metalink-preferred-protocol = "https";
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user