deploy-flake.sh: always rebuild using target hostname

This commit is contained in:
Astro 2022-01-07 00:02:49 +01:00
parent 08f8dcf88e
commit 4337e4a77e
1 changed files with 1 additions and 1 deletions

View File

@ -46,5 +46,5 @@ else
rsync -az "$(dirname "$0")" root@"$target":nix-config
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