marleyos/home/programs/wget.nix
punkfairie ceb4bf3cde 🚚 refactor(home): Reorganize modules
Instead of having separate folders for each program with a default.nix
inside, moved modules into programs/services/xorg respectively. Xdg was
moved to the root home folder as it makes the most sense there.
2024-11-03 13:20:00 -08:00

41 lines
914 B
Nix

{
pkgs,
lib,
config,
...
}:
{
home.packages = with pkgs; [
wget
];
xdg.configFile."wgetrc" = {
enable = true;
text = # wget
''
# Use the server-provided last modification date, if available.
timestamping = on
# Wait 60 seconds before timing out.
timeout = 60
# Retry a few times when a download fails, but don't overdo it (the default is
# 20!).
tries = 3
# Retry even when the connection was refused.
retry_connrefused = on
# Use the last component of a redirection URL for the local file name.
trust_server_names = on
# Disguise as IE 9 on Windows 7.
user_agent = Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
'';
};
home.sessionVariables = lib.mkIf config.home.preferXdgDirectories {
WGETRC = "${config.xdg.configHome}/wgetrc";
};
}