Remove the build-host argument

This commit is contained in:
Andreas Zweili 2023-06-09 07:37:24 +02:00
parent 4e0be191c2
commit 7553caca49
3 changed files with 3 additions and 3 deletions

View File

@ -2,4 +2,4 @@
host=$1
fqdn="nixos@nixos.2li.local"
nixos-rebuild switch --use-remote-sudo --build-host localhost --target-host $fqdn --impure --flake ".#$host"
nixos-rebuild switch --use-remote-sudo --target-host $fqdn --impure --flake ".#$host"

View File

@ -31,7 +31,7 @@ do
fi
fqdn="$host.2li.local"
echo $fqdn
nixos-rebuild switch -j auto --use-remote-sudo --build-host localhost --target-host $fqdn --flake ".#$host" &&
nixos-rebuild switch -j auto --use-remote-sudo --target-host $fqdn --flake ".#$host" &&
if [ $reboot -eq 1 ]; then
ssh -i $rsa_key $fqdn 'sudo reboot'
fi

View File

@ -5,4 +5,4 @@ export NIX_SSHOPTS="-t -i $rsa_key"
host=$1
fqdn="$host.2li.local"
nixos-rebuild switch --use-remote-sudo --build-host localhost --target-host $fqdn --flake ".#$host"
nixos-rebuild switch --use-remote-sudo --target-host $fqdn --flake ".#$host"