1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

Revert "installer: add NIX_PATH fallback in <darwin> lookup"

This reverts commit 06f8d83f60.
This commit is contained in:
Daiderd Jordan 2018-10-27 00:14:38 +01:00
parent 0146366b21
commit 34a6eca033
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -13,7 +13,7 @@ with lib;
system.activationScripts.preUserActivation.text = mkBefore ''
PATH=/nix/var/nix/profiles/default/bin:$PATH
darwinPath=$(NIX_PATH=${concatStringsSep ":" config.nix.nixPath}:$HOME/.nix-defexpr/channels:$NIX_PATH nix-instantiate --eval -E '<darwin>' 2> /dev/null) || true
darwinPath=$(NIX_PATH=${concatStringsSep ":" config.nix.nixPath} nix-instantiate --eval -E '<darwin>' 2> /dev/null) || true
if ! test -e "$darwinPath"; then
if test -t 1; then
read -p "Would you like to manage <darwin> with nix-channel? [y/n] " i