nixos-rebuild: Fix SSHOPTS typo
Signed-off-by: Maximilian Güntner <code@klandest.in>
This commit is contained in:
parent
178b9e2734
commit
0cf907ae12
@ -126,9 +126,9 @@ targetHostCmd() {
|
|||||||
copyToTarget() {
|
copyToTarget() {
|
||||||
if ! [ "$targetHost" = "$buildHost" ]; then
|
if ! [ "$targetHost" = "$buildHost" ]; then
|
||||||
if [ -z "$targetHost" ]; then
|
if [ -z "$targetHost" ]; then
|
||||||
NIX_SSHOPTS=$SSH_OPTS nix-copy-closure --from "$buildHost" "$1"
|
NIX_SSHOPTS=$SSHOPTS nix-copy-closure --from "$buildHost" "$1"
|
||||||
elif [ -z "$buildHost" ]; then
|
elif [ -z "$buildHost" ]; then
|
||||||
NIX_SSHOPTS=$SSH_OPTS nix-copy-closure --to "$targetHost" "$1"
|
NIX_SSHOPTS=$SSHOPTS nix-copy-closure --to "$targetHost" "$1"
|
||||||
else
|
else
|
||||||
buildHostCmd nix-copy-closure --to "$targetHost" "$1"
|
buildHostCmd nix-copy-closure --to "$targetHost" "$1"
|
||||||
fi
|
fi
|
||||||
@ -169,7 +169,7 @@ nixBuild() {
|
|||||||
|
|
||||||
local drv="$(nix-instantiate "${instArgs[@]}" "${extraBuildFlags[@]}")"
|
local drv="$(nix-instantiate "${instArgs[@]}" "${extraBuildFlags[@]}")"
|
||||||
if [ -a "$drv" ]; then
|
if [ -a "$drv" ]; then
|
||||||
NIX_SSHOPTS=$SSH_OPTS nix-copy-closure --to "$buildHost" "$drv"
|
NIX_SSHOPTS=$SSHOPTS nix-copy-closure --to "$buildHost" "$drv"
|
||||||
buildHostCmd nix-store -r "$drv" "${buildArgs[@]}"
|
buildHostCmd nix-store -r "$drv" "${buildArgs[@]}"
|
||||||
else
|
else
|
||||||
echo "nix-instantiate failed"
|
echo "nix-instantiate failed"
|
||||||
|
Loading…
Reference in New Issue
Block a user