Closed yishiliu1 closed 2 months ago
If you want to start from scratch, I'd suggest following the upstream uninstall documentation: https://nix.dev/manual/nix/latest/installation/uninstall.html#macos
Also note that the base is just that: the base. So every other user will be base + N
. So you'd want to configure the base to be 300
instead of 301
.
Thanks @cole-h! Changing the base from301
to 300
solved the issue! The command I ran that successfully installed nix in my system: curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --nix-build-group-id 30000 --nix-build-user-id-base 300
Great, I'm glad you got it working! Keep in mind that the 300 base will break Nix after you take the macOS Sequoia upgrade. You may want to take a look at our blog post on preparing for that inevitability: https://determinate.systems/posts/nix-support-for-macos-sequoia/
May have had nix installed a long time ago (2-3 years ago), but not very sure and now the system cannot find nix
-bash: nix: command not found
When I tried to run the nix installation command
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
, got an error belowError
Then I ran the suggested command
diskutil apfs deleteVolume "Nix Store"
, and got this error belowWe found a suggestion to addd
--nix-build-group-id 30000
to the installation command, i.e.curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --nix-build-group-id 30000
. Then got this error belowLastly, we added another flag to the installation command -
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --nix-build-group-id 30000 --nix-build-user-id-base 301
and ended up with this error below. We got this--nix-build-user-id-base
suggested argument from nixAny suggestion on what next steps I can try? Or any idea on what's happening here?
Metadata