From 0232c52b00d2cd4350bc324f71da993cb5cc6989 Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 26 Oct 2024 20:31:39 -0700 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(curl):=20Add=20curl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/curl/.curlrc | 11 +++++++++++ home/curl/default.nix | 11 +++++++++++ home/default.nix | 1 + 3 files changed, 23 insertions(+) create mode 100644 home/curl/.curlrc create mode 100644 home/curl/default.nix diff --git a/home/curl/.curlrc b/home/curl/.curlrc new file mode 100644 index 0000000..d83a650 --- /dev/null +++ b/home/curl/.curlrc @@ -0,0 +1,11 @@ +# limit the timeout in seconds +connect-timeout = 60 + +# follow HTTP redirects +location + +# show error messages +show-error + +# Disguise as IE 9 on Windows 7 +user-agent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)" diff --git a/home/curl/default.nix b/home/curl/default.nix new file mode 100644 index 0000000..5bf08f1 --- /dev/null +++ b/home/curl/default.nix @@ -0,0 +1,11 @@ +{pkgs, ...}: { + home.packages = with pkgs; [ + curl + ]; + + xdg.configFile.".curlrc" = { + enable = true; + source = ./.curlrc; + target = ".curlrc"; + }; +} diff --git a/home/default.nix b/home/default.nix index 77d20e0..14e28cb 100644 --- a/home/default.nix +++ b/home/default.nix @@ -27,6 +27,7 @@ ./bat ./btop ./cava + ./curl ./gh ./wget ./xdg