deploy: added exit before being able to initial deploy a host
This commit is contained in:
parent
cdb6518994
commit
a444fae996
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,8 @@ export NIX_PATH="nixpkgs=$NIXPKGS"
|
|||
|
||||
if [ "$1" == "initial-deploy" ]; then
|
||||
echo "Initial deployment..."
|
||||
echo "Removed exit below if you really want... "
|
||||
exit
|
||||
NIX_TOP_LEVEL_PATH=$(nix build --impure -I nixos-config=./machines/gerd.nix --json --expr "(import <nixpkgs/nixos> {}).config.system.build.toplevel" | jq -r '.[].outputs.out')
|
||||
NIX_DISKO_SCRIPT=$(nix build --impure -I nixos-config=./machines/gerd.nix --json --expr "(import <nixpkgs/nixos> {}).config.system.build.diskoScript" | jq -r '.[].outputs.out')
|
||||
|
||||
|
|
Loading…
Reference in a new issue