Re:Asdf Performance
by DancerOfFaran on Friday August 12, 2022 @11:11AM
(#32439781)
Nix Flakes are stable enough to replace nix-shell and lets you pin versions, so it has a significant reliability advantage.
Things get a bit tricker when flakes are paired with home-manager and especially nix-darwin, as the error handling leaves a lot to be desired (opaque errors that are extremely difficult to debug, leaving you with few choices outside of nuking all nix and re-starting).
I've been really careful to avoid OS-wide environment management with Nix, as we're on macOS; the only thing I do is `nix-env install direnv` imperatively during our setup script so we can sidestep the need for `nix-shell`.
I'm using nix with home-manager on macOS and I'm very satisfied. Haven't touched flakes yet tho.
Re:Asdf Performance
by mplanchard on Friday August 12, 2022 @11:11AM
(#32439783)
If you’re using something like niv, you’ve got most of what flakes will bring to the table. I’m in the same boat as you, don’t want to have people enable any experimental feature to get the dev environment going. I use flakes for all my personal stuff though, just because it’s easier than adding the niv dependency and because it comes along with using the new command line interface. I also like that flakes let you specify multiple targets in a single file.
Re:Asdf Performance
by TheAceOfHearts on Friday August 12, 2022 @08:25PM
(#32445592)
Would you consider writing up a tutorial? Or is there any resources you'd recommend?
Do you have any thoughts on whether or not we might be missing out? Any docs we should be looking at?