diff --git a/home/curl/.curlrc b/home/curl/.curlrc deleted file mode 100644 index d83a650..0000000 --- a/home/curl/.curlrc +++ /dev/null @@ -1,11 +0,0 @@ -# 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 index 4884495..b345d85 100644 --- a/home/curl/default.nix +++ b/home/curl/default.nix @@ -6,7 +6,21 @@ xdg.configFile.".curlrc" = { enable = true; - source = ./.curlrc; target = ".curlrc"; + + text = # conf + '' + # 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)" + ''; }; }