Skip to content

Commit 7077031

Browse files
committedJul 7, 2017
nixos-rebuild: Respect empty NIX_REMOTE
Fixes #11384. Note: in Nix 1.12, you can set NIX_REMOTE to "local" to avoid ambiguity.
1 parent 6e4a343 commit 7077031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎nixos/modules/installer/tools/nixos-rebuild.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ trap cleanup EXIT
250250
# If --repair is given, don't try to use the Nix daemon, because the
251251
# flag can only be used directly.
252252
if [ -z "$repair" ] && systemctl show nix-daemon.socket nix-daemon.service | grep -q ActiveState=active; then
253-
export NIX_REMOTE=${NIX_REMOTE:-daemon}
253+
export NIX_REMOTE=${NIX_REMOTE-daemon}
254254
fi
255255

256256

0 commit comments

Comments
 (0)
Please sign in to comment.