diff --git a/scripts/create-uefi.sh b/scripts/create-uefi.sh index 8211297..64a433f 100755 --- a/scripts/create-uefi.sh +++ b/scripts/create-uefi.sh @@ -2,6 +2,8 @@ #! nix-shell -i bash -p parted DISK=/dev/mmcblk0 +set -e + BOOT_DIR=/mnt/nixos/boot echo "Create partition table." diff --git a/scripts/format-disk.sh b/scripts/format-disk.sh index bdfa9d0..82d2eb5 100755 --- a/scripts/format-disk.sh +++ b/scripts/format-disk.sh @@ -2,6 +2,8 @@ #! nix-shell -i bash -p parted DISK=/dev/sdb +set -e + BOOT_PARTITION="$DISK"1 ROOT_PARTITION="$DISK"2 ROOT_DIR=/mnt/nixos diff --git a/scripts/rename-partitions.sh b/scripts/rename-partitions.sh index 2139ce7..c7cd10d 100755 --- a/scripts/rename-partitions.sh +++ b/scripts/rename-partitions.sh @@ -1,6 +1,8 @@ #! /usr/bin/env nix-shell #! nix-shell -i bash -p parted +set -e + rename_boot_partition() { echo "Rename boot partition." fatlabel /dev/disk/by-label/BOOTTOFRMT BOOT diff --git a/scripts/run-command b/scripts/run-command index f61b364..9937e0a 100755 --- a/scripts/run-command +++ b/scripts/run-command @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -e + cd /home/andreas/.nixos hosts=($(echo $(nix eval .#nixosConfigurations --apply 'pkgs: builtins.concatStringsSep " " (builtins.attrNames pkgs)') | xargs)) diff --git a/scripts/update-all-machines b/scripts/update-all-machines index 1b121c6..227cd8b 100755 --- a/scripts/update-all-machines +++ b/scripts/update-all-machines @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -e + cd /home/andreas/.nixos hosts=($(echo $(nix eval .#nixosConfigurations --apply 'pkgs: builtins.concatStringsSep " " (builtins.attrNames pkgs)') | xargs)) diff --git a/scripts/update-single-machine b/scripts/update-single-machine index ce70e59..1663257 100755 --- a/scripts/update-single-machine +++ b/scripts/update-single-machine @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -e + cd /home/andreas/.nixos rsa_key="~/.nixos/secrets/ssh_keys/ansible/ansible.key"