Add a test script

This commit is contained in:
Andreas Zweili 2022-11-04 13:22:42 +01:00
parent cdb504ca6c
commit c21f8c2a4d
1 changed files with 14 additions and 0 deletions

14
scripts/test_build.sh Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e
cd /home/andreas/.nixos
hosts=($(echo `nix eval .#nixosConfigurations --apply 'pkgs: builtins.concatStringsSep " " (builtins.attrNames pkgs)'` | xargs ))
for host in "${hosts[@]}"
do
echo $host
nixos-rebuild switch -j auto dry-build --flake ".#$host"
echo
echo
done