Trying to decide on whether to use Nix on my new Macbook… the idea of Nix always appeals to me, but I always get lost in all the decisions I need to make when setting it up. Do I wait for another release cycle and just go with Brew for now? 🤔
Conversation
If you haven't already seen it, do check out nix.dev ; there has been a bunch of documentation effort recently. (I'm not using Nix, but I was also looking into it.)
1
1
Any reason why you decided not to use it?
1
Additionally: how do you work with your environment configuration instead?
1
It's that I haven't had the time to sit down and read the docs. I usually end up using whatever makes sense based on the language I'm using and whether it is project-specific or global: could be brew/apt, nvm, rustup, stack, opam or something else.
2
1
Yeah, that's something I've been confused by – how does Nix interact with my general dev of cargo stuff (and possibly opam and cabal stuff in the future).
1
My (limited, potentially incorrect) understanding so far is that it doesn't. It is a transitively closed system, which is why it gives you the ability to switch things at whim without having to worry about things like "uh, what toolchain do I need to build this with".
1
Replying to
Yeah I think that was my understanding too. Like, I could just use rustup/cargo/cabal etc. But I could also choose to let Nix manage it if that's what I prefer?
Replying to
I think so. E.g. here: github.com/arxanas/git-br
You need to specify a bunch of inputs like openssl explicitly, which you'd normally not be specifying with Cargo, because everything needs to be explicit with Nix (including "system" dependencies IIUC).

