Remove nom when using the reboot option

For some reason nmon hangs endlessly and doesn't let me enter the password to
reboot the system.
This commit is contained in:
Andreas Zweili 2023-12-04 09:53:51 +01:00
parent b02092e97a
commit b13bd21de2
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ for host in "${hosts[@]}"; do
nixos-rebuild switch -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" |& nom
else
echo "$fqdn with reboot"
nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" |& nom
nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host"
ssh -i $rsa_key $fqdn 'sudo reboot'
fi
echo

View File

@ -14,7 +14,7 @@ while getopts ":r" option; do
host=$2
fqdn="$host.2li.local"
echo "$fqdn with reboot"
nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" |& nom
nixos-rebuild boot -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host"
ssh -i $rsa_key $fqdn 'sudo reboot'
;;
esac