Open colonelpanic8 opened 6 years ago
I assume you're talking about NixOS rather than Nix. In any case, /etc/profile is executed for login shells, so the previous contents of the environment (if any) should be irrelevant. Indeed, overwriting rather than appending ensures a more predictable environment.
@edolstra .zshenv will run BEFORE /etc/profile, actually, and according to the zsh manual, this is where user path should be configured.
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
Issue description
NixOS clobbers $PATH in /etc/profile by default.
I don't think it makes sense for it to do this. The existing value of $PATH should appear in this statement somewhere.
Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the results.