Add a test script
This commit is contained in:
parent
cdb504ca6c
commit
c21f8c2a4d
|
@ -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
|
Loading…
Reference in New Issue