{ config, ... }: {
programs = {
yt-dlp = {
enable = true;
settings = {
embed-thumbnail = true;
add-metadata = true;
# downloader = "aria2c";
# downloader-args = "aria2c:'-c -x8 -s8 -k1M'";
format = "bestvideo+bestaudio/best";
};
};
# Aria2 in yt-dlp manages itself.
# If you enable this, ~/.config/aria2/config will
# be created which will interfere with other tasks.
aria2 = {
enable = true;
settings = {
continue = true;
dir = "${config.xdg.userDirs.download}";
file-allocation = "none";
max-connection-per-server = 4;
min-split-size = "5M";
log-level="warn";
};
};
};
}
The above is the home-manager configuration i use for aria2c. It works on other distros, (the files generated in .config dir are the exact same, except for the downloads dir which is /home/{username}/Downloads in nix and ${HOME}/Downloads in other distros. What is the problem here?
The downloading just doesn’t start in NixOS. It kind of halts at the start, returns a few errors and then dies.