1
0
forked from c3d2/nix-config

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

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