From 140114570f94ed5b353342856d0dbf0b3d2a7c75 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 26 Oct 2024 20:17:00 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(wget):=20Install=20wget?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/default.nix | 1 + home/wget/default.nix | 11 +++++++++++ home/wget/wgetrc | 18 ++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 home/wget/default.nix create mode 100644 home/wget/wgetrc diff --git a/home/default.nix b/home/default.nix index b81c469..77d20e0 100644 --- a/home/default.nix +++ b/home/default.nix @@ -28,6 +28,7 @@ ./btop ./cava ./gh + ./wget ./xdg ]; diff --git a/home/wget/default.nix b/home/wget/default.nix new file mode 100644 index 0000000..a56b0c9 --- /dev/null +++ b/home/wget/default.nix @@ -0,0 +1,11 @@ +{pkgs, ...}: { + home.packages = with pkgs; [ + wget + ]; + + xdg.configFile."wgetrc" = { + enable = true; + source = ./wgetrc; + target = "wgetrc"; + }; +} diff --git a/home/wget/wgetrc b/home/wget/wgetrc new file mode 100644 index 0000000..0ba8ac2 --- /dev/null +++ b/home/wget/wgetrc @@ -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)