nix.dev
nix.dev copied to clipboard
recommend building projects forward-compatible with flakes
New users sometimes are interested in flakes and have heard of them, but may avoid them due to their experimental status and perceived additional complexity. A friendly way to introduce it is to build a project's .nix files in a way that are compatible with being called from flakes. And then a simple wrapper flake.nix provides a backward-compatible upgrade path when they desire.
Until Nix 2.4 is released, I'm not supportive of documenting any kind of flakes in tutorials.
That's because they are undocumented and too much of a moving target.
Now that Nix 2.4 is released, is this back on the table? I recall you mentioning on Matrix that parts of tutorials would be re-written to use the new CLI.
Yeah!
An opinionated guide that takes full advantage of the bleeding edge features, like flakes & new CLI, sounds awesome and is exactly what I would be looking for as a new user (since these features sound like the future of Nix) :)
I'm wrapping up a big chunk of work, after things settle down I plan to get on flakes!
Thank you in advance for the upcoming updated tutorials using the flakes format. I've trying to learn nix in the past months, and now it seems more confusing than ever! Hopefully the new release cadence (2.5, 2.6, etc) will help to have the community agree on the standard way of using nix.
Looking forward for the tutorials!
This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/usability-study-session-2/21400/1