Open mkatychev opened 1 week ago
Hey @mkatychev, we're taking a look at this and will get a better reply sooner. But in the mean time, please don't do this:
I could do a sudo chown -R $USER:staff /nix/store/ but that may break other functionality as it relates to upgrading nix itself.
It won't help the problem, and will cause other problems :').
Agreed, I figured I would highlight it as a bad idea that could make things work temporarily :)
UPDATE: I've had to some manual removal for the profile install to work:
sudo rm /Library/LaunchDaemons/org.nixos.nix-daemon.plist
rm -rf ~/.nix-profile
rm -rf ~/.local/state/nix
This allows me to reinstall correctly, however the ~/.local/state/nix/profiles/profile
symlink is dangling:
/Users/mkatychev/.nix-profile -> /Users/mkatychev/.local/state/nix/profiles/profile
https://nix.dev/manual/nix/2.18/command-ref/new-cli/nix3-profile
Using an absolute path for nix
now profile install
s without sudo
:
/nix/var/nix/profiles/default/bin/nix profile install 'github:NixOS/nixpkgs#hello'
Problem
After resolving the uninstall issues (https://github.com/DeterminateSystems/nix-installer/issues/1234#issuecomment-2433522881), I have proceeded to do a fresh reinstall using the latest
curl
approach:Attempting to install
hello
results in a permissions error:I could do a
sudo chown -R $USER:staff /nix/store/
but that may break other functionality as it relates to upgrading nix itself.Notes
current nix/profiles structure:
Listing profiles also resulted in a permission error:
/nix/store/
are currently owned by root:System: