Skip to content
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

nix-tools: drop nixPackage, make systemPath more readable #1282

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

emilazy
Copy link
Collaborator

@emilazy emilazy commented Jan 18, 2025

I wonder if we actually want nix-darwin specific things like /etc/profiles/per-user/$USER/bin in the default path here. Probably it doesn’t hurt to, especially for the uninstaller, but I guess it could cause issues with reinstalling after a weird half‐uninstalled nix-darwin setup or something. It’ll refer to root’s packages soon enough anyway…

We already put `/nix/var/nix/profiles/default/bin` on the `$PATH`,
and whatever `nix.package` is set to already gets installed into
`/run/current-system/sw/bin`, so this is pointless.
It has the user’s `environment.systemPath`, so it might be more
likely to work in some edge cases. Probably better to recommend trying
the local one first.
@emilazy emilazy requested a review from Enzime January 18, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant