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

darwin-uninstaller: remove darwin channel from root too #1279

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

emilazy
Copy link
Collaborator

@emilazy emilazy commented Jan 18, 2025

Handle this now that we recommend people use sudo nix-channel --add. I’m not sure ~/.nix-defexpr is always used (e.g. with XDG directories?), so we just remove it unconditionally in both user and system activation and hope the warning isn’t too bothersome, but maybe we could do something smarter here.

@Enzime I don’t suppose you have any idea what the [[ "$(shasum -a 256 /Library/LaunchDaemons/org.nixos.nix-daemon.plist | awk '{print $1}')" == "$(shasum -a 256 /Library/LaunchDaemons/org.nixos.nix-daemon.plist | awk '{print $1}')" ]] thing from 3a89b61 is about?

@Enzime
Copy link
Collaborator

Enzime commented Jan 21, 2025

If I remember correctly that check was meant to be is the installed version of nix-daemon the same as the one in your current system closure but I’m not entirely sure

@emilazy
Copy link
Collaborator Author

emilazy commented Jan 21, 2025

Makes sense. I guess it can wait until another time to figure out what it should be doing :)

Though shouldn’t it be testing the opposite, i.e. the Nix from the system closure is no longer being used…?

@emilazy emilazy merged commit 46d0fa4 into LnL7:master Jan 21, 2025
3 checks passed
@emilazy emilazy deleted the push-tstmztlwwouo branch January 21, 2025 01:33
@Enzime
Copy link
Collaborator

Enzime commented Jan 21, 2025

Or possibly it was to check that it matches the one from your system profile (/nix/var/nix/profiles/…) which is the one that gets restored when you uninstall I’m not sure

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.

3 participants