News for hackers. Stuff that matters.
Re:Asdf Performance by striking on Friday August 12, 2022 @10:59AM (#32439619)
I've led the implementation of Nix as a dev env at my workplace to pretty good results, but none of us are quite yet willing to touch flakes yet because they're still marked as experimental.

Do you have any thoughts on whether or not we might be missing out? Any docs we should be looking at?

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).

Re:Asdf Performance by striking on Friday August 12, 2022 @11:13AM (#32439807)
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`.
Re:Asdf Performance by okkdev on Friday August 12, 2022 @02:18PM (#32442130)
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?
Re:Asdf Performance by striking on Saturday August 13, 2022 @12:33AM (#32446924)
We're midway through transitioning engineers to it, as well as building stuff on top of it to make for a really great DX. I'll probably write a blog post when the whole env is a little more complete.