this post was submitted on 11 Jul 2023
14 points (100.0% liked)

Nix / NixOS

1765 readers
2 users here now

Main links

Videos

founded 1 year ago
MODERATORS
 

I'm new to nix, but I really went full beans on it: installed NixOS on my daily and I'm using nix-shell for some projects and yesterday I learned how nix docker images work.

I was actively avoiding flakes because I try never to use unstable/experimental features until they are stabilised so I can rely on them.

Thing is, they seem to be ubiquitous. Their reason to exist makes sense to me and I think I should learn how to use them to fully take advantage of the ecosystem.

My question: is it fairly safe to assume nix flakes won't suddenly break on me? is there any known roadmap to flakes stabilisation?

you are viewing a single comment's thread
view the rest of the comments
[–] samae@lemmy.menf.in 9 points 1 year ago (3 children)

The flakes interface of nix may change in the future, and you should be prepared to update your code, documentation etc. if and when that happens. Consider flakes have been around since nix 2.4 and the interface haven't drastically changed since then. If that risk sounds acceptable to you, then do use it :)

There is an ongoing effort to get flakes away from the experimental category, but as you may guess, it is a big chunk to stabilize all at once. The original RFC was closed https://github.com/NixOS/rfcs/pull/49 a long while ago, due to it describing the experimental feature, and not the final one. AFAIK, there's no "one" RFC being discussed on finalizing an initial stable version of flakes (but I could swear I've heard of one).

[–] rofoldos@lemm.ee 1 points 1 year ago (2 children)

When you say that flakes haven’t “drastically changed”, does it mean no breaking changes at all? only new features?