From 8bf46112d8a308abba8c0e46ace597c8b21e86c4 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 3 Jan 2018 23:03:36 +0100 Subject: [PATCH] bootstrap: add warning for /etc/profile --- bootstrap.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bootstrap.sh b/bootstrap.sh index f4e692ab..7fde5d66 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -211,6 +211,12 @@ install(){ fi fi + if grep -q 'etc/profile.d/nix-daemon.sh' /etc/profile; then + echo -e ""$RED"WARNING: Detected nix-daemon.sh in /etc/profile." + echo "This will override environment variables configured by nix-darwin," + echo "you might want to remove that." + fi + # Finish echo -e ""$GREEN"You're all done!"$ESC"" echo -e "Take a look at "$YELLOW"~/.nixpkgs/darwin-configuration.nix"$ESC" to get started."