-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 profile [verb] failing on MacOS 14 with permission error #9702
Comments
On my machine, permissions for Should I just EDIT: Or maybe my machine is the one that's wrong, it's a much older install! |
FYI, I had the same issue on Debian (after |
I just reinstalled and now |
Just tried $ ls -A /nix/var/nix/profiles/per-user
root |
Reinstalled again, this time removing
Seems to be coming from nix/scripts/install-darwin-multi-user.sh Line 103 in 75ebb90
Looks like this should be the missing step: $ NIX_DAEMON_DEST=/Library/LaunchDaemons/org.nixos.nix-daemon.plist
$ sudo /usr/bin/install -m -rw-r--r-- "/nix/var/nix/profiles/default$NIX_DAEMON_DEST" "$NIX_DAEMON_DEST"
$ sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist
$ sudo launchctl kickstart -k system/org.nixos.nix-daemon I get an error at: $ sudo launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist
Load failed: 5: Input/output error
Try running `launchctl bootstrap` as root for richer errors. Probably should be using $ sudo launchctl bootstrap system /Library/LaunchDaemons/org.nixos.nix-daemon.plist
Bootstrap failed: 5: Input/output error Ok, probably due to the prior installation. $ sudo launchctl bootout system/org.nixos.nix-daemon
$ sudo launchctl bootout system/org.nixos.nix-daemon
Boot-out failed: 3: No such process Yup, failed the second time, so I assume that's it. $ sudo launchctl bootstrap system /Library/LaunchDaemons/org.nixos.nix-daemon.plist
$ echo $?
0 Good deal. $ sudo launchctl kickstart -k system/org.nixos.nix-daemon But still no user profile... $ ls /nix/var/nix/profiles/per-user/
root |
Followed uninstall instructions from https://nixos.org/manual/nix/stable/installation/uninstall.html#macos and tried to reinstall again. Got an error about $ ls /nix/var/nix/profiles/per-user/
root Interestingly, according to https://nixos.wiki/wiki/User_Environment
But for me:
|
Related? #7984 Well my initial attempt to install home-manager failed due to this directory not existing, but this one succeeded even without the |
@n8henrie The wiki page is outdated it seems. |
Describe the bug
I have nix installed on my wife's laptop so I can do maintenance tasks. I don't feel like setting up
nix-darwin
since I only use these occasionally and want the rest of the system to work as usual.A few utilities I had pinned can no longer be upgraded, removed, and nothing new can be installed, all with permissions errors:
Steps To Reproduce
Expected behavior
Can install / remove / upgrade pinned packages.
nix-env --version
outputAdditional context
I might have had to reinstall nix a few months ago because it wasn't working after an OS upgrade? Can't remember.
Tried adding
username
to trusted-users and relaunching nix-daemon, didn't change anything.Priorities
Add 👍 to issues you find important.
The text was updated successfully, but these errors were encountered: