# An incremental strategy for stabilizing flakes

**URL:** https://discourse.nixos.org/t/an-incremental-strategy-for-stabilizing-flakes/16323
**Category:** Development
**Created:** [November 29, 2021, 6:44pm UTC](https://discourse.nixos.org/t/an-incremental-strategy-for-stabilizing-flakes/16323 "2021-11-29T18:44:42Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![edolstra](https://discourse.nixos.org/user_avatar/discourse.nixos.org/edolstra/32/84_2.png) [@edolstra](https://discourse.nixos.org/u/edolstra)
#### Post date: [December 1, 2021, 9:27pm UTC](https://discourse.nixos.org/t/an-incremental-strategy-for-stabilizing-flakes/16323/5 "2021-12-01T21:27:12Z")

</div>

> [@pxc](#):
>
> One of the difficulties with the original flakes RFC was its extremely broad scope.

I don’t agree with that characterization. The scope of [the flakes RFC](https://github.com/tweag/rfcs/blob/ca2845b81814c345945de4be0b36cd5fb4eb080b/rfcs/0049-flakes.md) was pretty limited: it provides a standard way to define multi-repository Nix projects. This consists of the `flake.nix` structure, a way to define dependencies on other repos (`inputs`), and a lock file format. What it didn’t do:

- Define any flake outputs. (This is up to tools such as `nix` and Hydra.)
- Define a flake URL format. (I.e. the “Nix resources”.)
- Define a registry.
- Replace any existing configuration/composition mechanisms in the Nix ecosystem, such as Nixpkgs overlays and NixOS modules.
- Make any language changes.
- Add a type system for defining the type of outputs. (IIRC this was part of Shea’s original flakes proposal.)
- Add a module system.

> [@pxc](#):
>
> What are flakes and what are they for?

To quote the RFC: Flakes allow hermetic, reproducible evaluation of multi-repository Nix projects; impose a discoverable, standard structure on Nix projects; and replace previous mechanisms such as Nix channels and the Nix search path.

> [@pxc](#):
>
> Proposal: an incremental stabilization/release strategy for Nix flakes

Step 3 seems to ignore the work done in the last couple of years. Nix 2.4 _is_ the first flakes-enabled version of Nix and it has flake-enabled versions of `nix search`, `nix-env -i` and `nix-channel`. (`nixos-rebuild` is in another project.)

In case you didn’t see it, there is [a proposed roadmap](https://discourse.nixos.org/t/nix-release-schedule-and-roadmap/14204) that suggests stabilizing flakes and the new CLI in the next few 2.x releases, and doing a 3.0 release when we’re prepared to call them stable.

---

_[View the full topic](https://discourse.nixos.org/t/an-incremental-strategy-for-stabilizing-flakes/16323)._
