3 ms·
Came here hoping to see some recommendations on getting started with nix on MacOS, or maybe a favorite blog post or series. I've tried the nix.dev installation
by n8henrie 5y ago
Came here hoping to see some recommendations on getting started with nix on MacOS, or maybe a favorite blog post or series.
I've tried the nix.dev installation + nix-darwin instructions 4 or 5 times but never make it very far.
Seems like I should generally prefer a multi-user install? Does nix-darwin play well with that?
As I supposed to `sudo -i nix-channel --add / update` or not use sudo? Is unstable the generally recommended channel? Do I use sudo with nix-darwin, since it's supposed to be kind of like NixOS / system-wide?
And then I usually give up, count my blessings for homebrew, and resolve to never again waste another 2 days trying to figure out nix.
Rinse and repeat in 1 month.
- rgoulter 5y ago> Seems like I should generally prefer a multi-user install? Does nix-darwin play well with that? On my macOS computer, I don't have a multi-user install. Never had issues with it (but I also only just use one user account for everything). Just tried running the nix-darwin installer, and it sets up some extra users as part of that anyway. > Am I supposed to `sudo -i nix-channel --add / update` or not use sudo? Is unstable the generally recommended channel? Do I use sudo with nix-darwin, since it's supposed to be kind of like NixOS / system-wide? Once you've got nix installed, in general you don't want to "sudo nix ...". Unstable is fine; but if things break, it's easy to rollback changes with Nix, so that you can use the versions which worked. There's no need to start out with wrangling with nix-darwin. Just starting out with "nix-env --install --attr nixpkgs.<whatever>" will be closest to how homebrew is used.