forked from c3d2/nix-config
deploy-flake.sh: always rebuild using target hostname
This commit is contained in:
parent
08f8dcf88e
commit
4337e4a77e
|
@ -46,5 +46,5 @@ else
|
||||||
rsync -az "$(dirname "$0")" root@"$target":nix-config
|
rsync -az "$(dirname "$0")" root@"$target":nix-config
|
||||||
|
|
||||||
echo "$hostname> nixos-rebuild switch"
|
echo "$hostname> nixos-rebuild switch"
|
||||||
exec ssh root@"$target" "nixos-rebuild --flake ./nix-config#$hostname switch"
|
exec ssh root@"$target" "nixos-rebuild --flake ./nix-config#`hostname` switch"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue