mirror of
https://github.com/elitak/nixos-infect
synced 2024-11-10 05:54:20 +00:00
Allow getting configuration from http (#157)
This commit is contained in:
parent
11a385c573
commit
1a2f458c03
1 changed files with 6 additions and 0 deletions
|
@ -323,6 +323,12 @@ infect() {
|
||||||
nix-channel --add "https://nixos.org/channels/$NIX_CHANNEL" nixos
|
nix-channel --add "https://nixos.org/channels/$NIX_CHANNEL" nixos
|
||||||
nix-channel --update
|
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}"
|
export NIXOS_CONFIG="${NIXOS_CONFIG:-/etc/nixos/configuration.nix}"
|
||||||
|
|
||||||
nix-env --set \
|
nix-env --set \
|
||||||
|
|
Loading…
Reference in a new issue