packages: fix deploy
This commit is contained in:
parent
07031c2985
commit
735e0910cb
|
@ -158,7 +158,7 @@ lib.attrsets.mapAttrs
|
||||||
"${name}-nixos-rebuild-local" = pkgs.writeScriptBin "${name}-nixos-rebuild" ''
|
"${name}-nixos-rebuild-local" = pkgs.writeScriptBin "${name}-nixos-rebuild" ''
|
||||||
set -eou pipefail
|
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
|
# 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 "$@"
|
_NIXOS_REBUILD_REEXEC=1 ${lib.getExe hostPkgs.nixos-rebuild} ${rebuildArg} --target-host ${target} --use-remote-sudo "$@"
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user