deploy: added exit before being able to initial deploy a host

This commit is contained in:
eyjhb 2024-08-08 18:59:58 +02:00
parent cdb6518994
commit a444fae996
No known key found for this signature in database
GPG key ID: 609F508E3239F920

View file

@ -10,6 +10,8 @@ export NIX_PATH="nixpkgs=$NIXPKGS"
if [ "$1" == "initial-deploy" ]; then if [ "$1" == "initial-deploy" ]; then
echo "Initial deployment..." 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_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') 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')