NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.59k stars 1.51k forks source link

Installing Nix on MacOS Sequoia Developer Beta #11394

Open dstoyak opened 1 month ago

dstoyak commented 1 month ago

Platform

Additional information

I am using the macos seqouia developer beta. i have tried rebooting my computer but had no luck with that. its probably something to do with the beta, but i really don't want to revert back because I like the window snapping feature in the beta lol.

Output

Output ```log Nix traditionally stores its data in the root directory /nix, but macOS now (starting in 10.15 Catalina) has a read-only root directory. To support Nix, I will create a volume and configure macOS to mount it at /nix. ~~> Configuring /etc/synthetic.conf to make a mount-point at /nix ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/bin/ex -u NONE -n /etc/synthetic.conf to add Nix to /etc/synthetic.conf ~~> Creating a Nix volume ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/diskutil unmount force disk3s7 to ensure the Nix volume is not mounted Unmount failed for disk3s7 ~~> Configuring /etc/fstab to specify volume mount options ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/vifs to add nix to fstab ~~> Encrypt the Nix volume ---- sudo execution ------------------------------------------------------------ I am executing: $ sudo /usr/sbin/diskutil mount Nix Store to mount your Nix volume for encrypting Failed to find disk Nix Store ---- oh no! -------------------------------------------------------------------- Oh no, something went wrong. If you can take all the output and open an issue, we'd love to fix the problem so nobody else has this issue. ```
abathur commented 1 month ago

Not sure we've seen one like this, though there is a known issue with uids:

I would follow the uninstall instructions (https://nixos.org/manual/nix/stable/installation/uninstall.html#macos) before reinstalling it using the UID override instructions mentioned in the issue.