From 5dbf3d676ff3a7a33da1c367cbd94925472a784d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 17 Jun 2024 14:41:12 +0200 Subject: [PATCH] Follow redirects when curling config This is required when eg the config is stored in a gist --- nixos-infect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos-infect b/nixos-infect index 06f0171..61113a4 100644 --- a/nixos-infect +++ b/nixos-infect @@ -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