Allow getting configuration from http

This commit is contained in:
Arnout Engelen 2023-06-02 13:18:26 +02:00
parent 11a385c573
commit 3753db2f39
No known key found for this signature in database
GPG key ID: 061107B0F74A6DAA

View file

@ -323,6 +323,12 @@ infect() {
nix-channel --add "https://nixos.org/channels/$NIX_CHANNEL" nixos
nix-channel --update
if [[ $NIXOS_CONFIG = http* ]]
then
curl $NIXOS_CONFIG -o /etc/nixos/configuration.nix
unset NIXOS_CONFIG
fi
export NIXOS_CONFIG="${NIXOS_CONFIG:-/etc/nixos/configuration.nix}"
nix-env --set \