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