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:
parent
b02092e97a
commit
b13bd21de2
|
@ -35,7 +35,7 @@ for host in "${hosts[@]}"; do
|
||||||
nixos-rebuild switch -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" |& nom
|
nixos-rebuild switch -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" |& nom
|
||||||
else
|
else
|
||||||
echo "$fqdn with reboot"
|
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'
|
ssh -i $rsa_key $fqdn 'sudo reboot'
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
|
|
|
@ -14,7 +14,7 @@ while getopts ":r" option; do
|
||||||
host=$2
|
host=$2
|
||||||
fqdn="$host.2li.local"
|
fqdn="$host.2li.local"
|
||||||
echo "$fqdn with reboot"
|
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'
|
ssh -i $rsa_key $fqdn 'sudo reboot'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in New Issue