packages: fix deploy

This commit is contained in:
Sandro - 2023-11-10 21:49:12 +01:00
parent 07031c2985
commit 735e0910cb
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ lib.attrsets.mapAttrs
"${name}-nixos-rebuild-local" = pkgs.writeScriptBin "${name}-nixos-rebuild" ''
set -eou pipefail
[[ $1 == build || $(ssh ${target} cat /etc/hostname) == ${name} ]]
[[ ''${1:-} == build || $(ssh ${target} cat /etc/hostname) == ${name} ]]
# don't re-execute, otherwise we run the targetPlatform locally
_NIXOS_REBUILD_REEXEC=1 ${lib.getExe hostPkgs.nixos-rebuild} ${rebuildArg} --target-host ${target} --use-remote-sudo "$@"
'';