4 ms·
I use nix on my Mac, and it's dreamy, everything Just Works you should try it! Well, it works now that I've set it up. But the setup is not exactly trivial. He
by bobbylarrybobby 6y ago
I use nix on my Mac, and it's dreamy, everything Just Works you should try it!
Well, it works now that I've set it up. But the setup is not exactly trivial. Here are the steps I used last time I set it up, a year or two ago, to get a single-user install working:
```bash
sudo vim /etc/synthetic.conf
# Insert the following line in vim (the file should be three bytes long):
nix
# Save and exit vim
echo "LABEL=Nix /nix apfs rw" | sudo tee -a /etc/fstab
# Reboot computer
sudo diskutil apfs addVolume disk1 APFSX Nix -mountpoint /nix
sudo diskutil enableOwnership /nix
sudo chown -R "$(whoami)" /nix
# Reboot computer
sh <(curl https://releases.nixos.org/nix/nix-2.3.10/install https://releases.nixos.org/nix/nix-2.3.10/install) --no-daemon
```
So not exactly pretty, but it works. And it works great. Nothing every breaks -- installations/updates may fail, but they leave the previously working version in place so that everything works as if I hadn't tried to install/update in the first place. I wouldn't want to have to set it up again, but now that I have, I don't want to use anything else to manage my packages.