Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ivangabriele/42eb3b907601f3594b79b19827a4846c to your computer and use it in GitHub Desktop.
Save ivangabriele/42eb3b907601f3594b79b19827a4846c to your computer and use it in GitHub Desktop.
Nix installation and running on macOS Catalina (10.15)

First Installation

Following this known issue:

  1. Run:
    echo 'nix' | sudo tee -a /etc/synthetic.conf
  2. Reboot
  3. 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

After Reboot

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment