Make sure that pihole gets built at the end

This commit is contained in:
Andreas Zweili 2022-11-04 13:48:54 +01:00
parent e4aa23f217
commit 1aab14c998
1 changed files with 7 additions and 2 deletions

View File

@ -7,6 +7,7 @@ skip=(
"desktop-vm"
"gwyn"
"loki-test"
"pihole"
"staubfinger"
)
@ -21,9 +22,13 @@ do
fi
fqdn="$host.2li.local"
echo $fqdn
nixos-rebuild switch -j auto --use-remote-sudo --build-host localhost --target-host $fqdn --flake ".#$host"
echo "reboot $fqdn"
nixos-rebuild switch -j auto --use-remote-sudo --build-host localhost --target-host $fqdn --flake ".#$host" &&
ssh -i $rsa_key $fqdn 'sudo reboot'
echo
echo
done
fqdn="pihole.2li.local"
echo $fqdn
nixos-rebuild switch -j auto --use-remote-sudo --build-host localhost --target-host $fqdn --flake ".#$host" &&
ssh -i $rsa_key $fqdn 'sudo reboot'