3 ms·
Nix Flakes are deemed experimental and explicitly not recommended in prod by the Nix project, afaict. Despite these warnings it’s widely used, but breakage is v
by tormeh 3y ago
Nix Flakes are deemed experimental and explicitly not recommended in prod by the Nix project, afaict. Despite these warnings it’s widely used, but breakage is very much a possibility because it hasn’t gone through the Nix RFC process.
- breakds 3y agoHave been using flakes in production for more than 2 years - I think it is stable enough for daily use.
- tomberek 3y agoStabilization of flakes and certain other experimental features is a top priority for the Nix team at the moment (disclaimer: myself included). Please take a look at RFC136 for an outline of our plan for the way ahead…… and please comment.
- JamesSwift 3y agoFrom the github issue [1]: First, the non-Flakes CLI wll be stabilized, in phases. Afterwards, Flakes itself and its CLI components can be stabilized. The final design of Flakes will also require another RFC. That seems like Flakes are still quite a ways away. [1] - https://github.com/NixOS/rfcs/pull/136 https://github.com/NixOS/rfcs/pull/136
- whateveracct 3y agoWhere did anyone say "not recommended in prod"? The experimental tag is mostly saying they may change the API when they upgrade Nix itself. Also, "in prod" is such an odd thing to say about Nix. It's a built-time thing. Nix doesn't run in prod. Even NixOS isn't running Nix code. It's running systemd units.
- rgoulter 3y ago> Also, "in prod" is such an odd thing to say about Nix. It's a built-time thing. Nix doesn't run in prod. What people mean by "use X in production" is that X is a key dependency as part of the production process. If you describe a NixOS configuration for the system where your services are running, you're "using" Nix, even though the Nix-specific stuff is already done. This relates to risk. -- If it turned out that using Nix to build packages or to configure a system then caused problems when running services later, that would be a problem. Whereas, "using in prod" suggests confidence in no problems, or in being able to fix any issue in a timely manner.
- fiddlerwoaroof 3y agoFlakes seem to be in "beta" the way Gmail was for years. Just about everyone I know that uses nix uses flakes now, and I've mostly switched myself.