this post was submitted on 11 Jul 2023
16 points (100.0% liked)
Nix / NixOS
1784 readers
1 users here now
Main links
Videos
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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).
When you say that flakes haven’t “drastically changed”, does it mean no breaking changes at all? only new features?
I'll let you compare the nix 2.4 manual page (https://web.archive.org/web/20211201073051/https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html) with the current one (https://nixos.org/manual/nix/stable/command-ref/new-cli/nix3-flake.html).
Thanks for the links!