New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extend NIX_PATH in nix-daemon.sh #1484
Conversation
LGTM To be frank, I don't recall exactly why it is loaded in both places. I feel this may have been from some info from @cleverca22. |
cc @domenkozar |
The exact details are very arbitrary and complex, but in short I have no idea what the best route is. |
@Ericson2314 yes, but bashrc will get loaded in both cases because
|
@edolstra would you like to merge this? |
Dunno, this seems dangerous to me because it can lead to |
I guess the main issue here is that this is loaded in multiple places, @Ericson2314 This is only used on macOS AFAIK. |
@LnL7 This file also clobbers NIX_PROFILES which will also mess up nix-darwin IIUC |
Closing in favour of #1774 |
The current
nix-daemon.sh
assumes it's loaded first, but that's not necessary the case.Since the new installer sources this at the end of
/etc/profile
it will run after/etc/bashrc
.I'm also not sure why it's loaded in both profile and bashrc. /cc @grahamc