mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-11-01 00:29:57 +03:00
Allow getting configuration from http
This commit is contained in:
parent
11a385c573
commit
3753db2f39
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 --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 \
|
||||
|
|
Loading…
Reference in a new issue