Reinstalling Nix on OS X hangs

I was trying to reinstall Nix on OS X; long story short, when i reset my nix environment, nix itself was no longer on my PATH, so I figured it might be a good time to reinstall. However, when I get here, no progress is made, even after a day of running:

~~> Configuring LaunchDaemon to mount 'Nix Store'

---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo /usr/bin/ex /Library/LaunchDaemons/org.nixos.darwin-store.plist

to install the Nix volume mounter


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo launchctl bootstrap system /Library/LaunchDaemons/org.nixos.darwin-store.plist

to launch the Nix volume mounter


---- sudo execution ------------------------------------------------------------
I am executing:

    $ sudo launchctl kickstart -k system/org.nixos.darwin-store

to launch the Nix volume mounter

I’m not super familiar with OS X either, so I haven’t really tried anything so far. Are there any suggestions?

Hmm…

macbookwh:~ bbarker$ ls -last /nix
total 0
0 drwxr-xr-x   2 root  wheel   64 Nov 13 19:37 .
0 drwxr-xr-x  23 root  wheel  736 Jun  3 08:29 ..
macbookwh:~ bbarker$ sudo rmdir /nix
rmdir: /nix: Read-only file system
macbookwh:~ bbarker$
1 Like

The last message on the linked Github issue is:

It does indeed look to be running diskutil . Unmounting fixed it. Thanks so much for the response!

How does one unmount the Nix volume?

diskutil unmount/umount can do this from the CLI, but IIRC you can also just open Disk Utility.app, right-click on the Nix Store volume, and select unmount.