Remove the build-host argument
This commit is contained in:
parent
4e0be191c2
commit
7553caca49
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue