3 ms·
Or for that matter I’m looking forward to learning more about nix which promises sort of the holy grail in these matters
by asimpletune 6y ago
Or for that matter I’m looking forward to learning more about nix which promises sort of the holy grail in these matters
- samatman 6y agoI tried using nix on a Mac, because I really respect what they're trying to do and it seems like a "right thing" kind of platform which I want to support. I wasn't able to get it to work, and it left a bunch of users (like ten??) and other various junk which was a pain to clean up. This was in 2017 I think. I keep hoping someone will chime in and say "I use nix on my Mac, and it's dreamy, everything Just Works you should try it!" because until that happens I'm going to stick with brew. While I'm on the subject, I was also a macports user until hmm, 2013 I think. Don't recall exactly why I switched, just that I was having some kind of intractable problem, messaged a friend who knows what he's talking about, and he said "just use brew dude". So I did.
- bobbylarrybobby 6y agoI 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.