nixos-rebuild: Respect empty NIX_REMOTE
Fixes #11384.
Note: in Nix 1.12, you can set NIX_REMOTE to "local" to avoid
ambiguity.
commit707703185dfede1af71d37ac474f1112d280b771
authorEelco Dolstra <edolstra@gmail.com>
dateFri 7 Jul 2017, 11:57 (9 years ago)
parent6e4a343
nixos/modules/installer/tools/nixos-rebuild.sh+1−1
@@ -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.
252252if [ -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}
254254fi
255255
256256