✨ feat(wget): Install wget
This commit is contained in:
parent
316870051a
commit
140114570f
3 changed files with 30 additions and 0 deletions
|
@ -28,6 +28,7 @@
|
|||
./btop
|
||||
./cava
|
||||
./gh
|
||||
./wget
|
||||
./xdg
|
||||
];
|
||||
|
||||
|
|
11
home/wget/default.nix
Normal file
11
home/wget/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
wget
|
||||
];
|
||||
|
||||
xdg.configFile."wgetrc" = {
|
||||
enable = true;
|
||||
source = ./wgetrc;
|
||||
target = "wgetrc";
|
||||
};
|
||||
}
|
18
home/wget/wgetrc
Normal file
18
home/wget/wgetrc
Normal file
|
@ -0,0 +1,18 @@
|
|||
# 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)
|
Loading…
Reference in a new issue