nix.dev icon indicating copy to clipboard operation
nix.dev copied to clipboard

recommend building projects forward-compatible with flakes

Open tomberek opened this issue 4 years ago • 7 comments

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.

tomberek avatar Apr 22 '21 04:04 tomberek

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.

domenkozar avatar Apr 23 '21 13:04 domenkozar

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.

siraben avatar Nov 10 '21 07:11 siraben

Yeah!

domenkozar avatar Nov 11 '21 03:11 domenkozar

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

100phlecs avatar Nov 22 '21 18:11 100phlecs

I'm wrapping up a big chunk of work, after things settle down I plan to get on flakes!

domenkozar avatar Nov 23 '21 10:11 domenkozar

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!

paulovieira avatar Feb 04 '22 12:02 paulovieira

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

nixos-discourse avatar Sep 09 '22 10:09 nixos-discourse