Skip to content

Commit 5a24bc2

Browse files
committed
nixos-anywhere: fix --build-on auto always defaulting to local
1 parent b957b44 commit 5a24bc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nixos-anywhere.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ checkBuildLocally() {
552552
-L \
553553
"${nixOptions[@]}" \
554554
--expr \
555-
"derivation { system = \"$system\"; name = \"env-$entropy\"; builder = \"/bin/sh\"; args = [ \"-c\" \"echo > \$out\" ]; }"; then
555+
"derivation { system = \"$machineSystem\"; name = \"env-$entropy\"; builder = \"/bin/sh\"; args = [ \"-c\" \"echo > \$out\" ]; }"; then
556556
# The local build failed
557557
buildOn=local
558558
return

0 commit comments

Comments
 (0)