♻ refactor(wget): wgetrc -> default.nix
This commit is contained in:
parent
21f3633a0b
commit
3e2199a728
2 changed files with 22 additions and 20 deletions
|
@ -11,8 +11,28 @@
|
||||||
|
|
||||||
xdg.configFile."wgetrc" = {
|
xdg.configFile."wgetrc" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
source = ./wgetrc;
|
|
||||||
target = "wgetrc";
|
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 {
|
home.sessionVariables = lib.mkIf config.home.preferXdgDirectories {
|
||||||
|
|
|
@ -1,18 +0,0 @@
|
||||||
# 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