Follow redirects when curling config

This is required when eg the config is stored in a gist
This commit is contained in:
Sandro Jäckel 2024-06-17 14:41:12 +02:00
parent 5ef3f953d3
commit 5dbf3d676f
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -338,7 +338,7 @@ infect() {
if [[ $NIXOS_CONFIG = http* ]]
then
curl $NIXOS_CONFIG -o /etc/nixos/configuration.nix
curl -L $NIXOS_CONFIG -o /etc/nixos/configuration.nix
unset NIXOS_CONFIG
fi