♻ refactor(curlrc): Seperate file -> inline text

This commit is contained in:
punkfairie 2024-11-03 09:45:30 -08:00
parent c7194ff811
commit 1f47b2c445
2 changed files with 15 additions and 12 deletions

View file

@ -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)"

View file

@ -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)"
'';
};
}