Following this known issue:
- Run:
echo 'nix' | sudo tee -a /etc/synthetic.conf
- Reboot
- Run:
sudo diskutil apfs addVolume disk1 APFSX Nix -mountpoint /nix sudo diskutil enableOwnership /nix sudo chflags hidden /nix echo "LABEL=Nix /nix apfs rw" | sudo tee -a /etc/fstab
TODO Double-check that.
Again, following this related issue, after each reboot, run:
launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist && launchctl start org.nixos.nix-daemon