<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/one-flake-to-rule-them-all-oyz5p8fiz" -->

---
title: One flake to rule them all | daily.dev
description: A new project called omniflake bundles nearly twelve thousand Nix flakes behind a single flake input, solving the recurring annoyance of manually adding and...
canonical: https://daily.dev/posts/one-flake-to-rule-them-all-oyz5p8fiz
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: One flake to rule them all | daily.dev
og:description: A new project called omniflake bundles nearly twelve thousand Nix flakes behind a single flake input, solving the recurring annoyance of manually adding and...
og:url: https://daily.dev/posts/one-flake-to-rule-them-all-oyz5p8fiz
og:image: https://api.daily.dev/og/posts/OyZ5P8FIz.png
og:image:alt: One flake to rule them all
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# One flake to rule them all

**[Farid Zakaria’s Blog](https://daily.dev/sources/fzakaria)** · 9 min read · 1 upvotes · 1 comments

## Summary

A new project called omniflake bundles nearly twelve thousand Nix flakes behind a single flake input, solving the recurring annoyance of manually adding and deduplicating flake inputs (with their nixpkgs 'follows' boilerplate). Instead of declaring each flake as an input, omniflake stores a JSONL table of pinned tree metadata and lazily fetches and evaluates a flake's own flake.lock only when it's actually requested, keeping evaluation fast (nix flake lock takes ~1.5s and only touches six nodes). The author also details a false start where naively adding thousands of flakes as direct inputs exposed a quadratic-time bug in Nix's lock file name-collision handling, which they fixed upstream (NixOS/nix#16387), yielding a ~21x speedup for 4,000 inputs.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://fzakaria.com/2026/08/28/one-flake-to-rule-them-all>

## Questions this post answers

### Why does creating a Nix flake.lock file with thousands of inputs become extremely slow?

Nix's lock file creation used quadratic-time string formatting when resolving name collisions: every duplicate input name (like the common 'systems' input) restarted the collision search from suffix _2 each time, so 4,000 inputs with 3,999 collisions produced about 8 million string formats. A patch (NixOS/nix pull request 16387) fixed this by remembering the highest suffix used per name, giving roughly a 21x speedup for 4,000 inputs with byte-identical lock output.

_Anyone hitting slow Nix lock files can track fixes like this one on daily.dev before they upgrade._

### How can I use a single Nix flake input to access thousands of other flakes without adding each one individually?

A project called omniflake stores a JSONL table of pre-resolved pins (the same locked object format a flake.lock entry uses) for nearly twelve thousand flakes, and only fetches a flake's tree when you actually reference it, such as omniflake.flakes.disko. It declares just five real inputs (nixpkgs plus four small libraries), so adding it only adds six nodes to your own lock file and takes about 1.5 seconds to lock.

_Developers tired of wiring up flake inputs by hand can follow tooling like this on daily.dev._

### Does Nix fetch or evaluate a flake input that no output actually uses?

No, Nix flakes are lazy: an input that no output touches is never fetched or evaluated, even if its entry in flake.lock is corrupted or points to a nonexistent revision. Only forcing an output that actually depends on that input triggers the fetch and surfaces an error, such as an HTTP 404 for a deliberately broken commit hash.

_Understanding Nix's laziness helps developers debugging flake performance find answers on daily.dev._

## Community take

How the wider developer community reacted, aggregated from 2 discussions and 21 comments across lobsters, hackernews (as of 2026-09-14).

**TL;DR:** Reaction is split between technical critique of the flakes ecosystem itself (with this project seen as papering over deeper design flaws) and a broader tangent about whether NixOS/Nix needs mass adoption to be valuable, with only modest direct engagement on the tool itself.

**Sentiment:** 25% positive · 35% mixed · 40% skeptical

**The case for**

- Some see it as a clever, technically neat way to add laziness to flake input evaluation.
- Long-time users note they get substantial value from Nix/NixOS without needing widespread adoption to justify it.
- Nixpkgs is viewed as an unusually large, up-to-date package repository, which some credit to the broader Nix ecosystem's influence.

**The pushback**

- One argument holds that the real problem is flakes' default transitive-dependency and `follows` ergonomics, and that composable `import`/`callPackage`/overlay patterns solve it more fundamentally than bundling thousands of flakes.
- Concern that hiding complexity behind a cron job pulling from a platform with unreliable uptime isn't a real fix for the lack of modularity.
- Skepticism that flakes are a sound foundation to build on at all, with some suggesting the experimental feature should be considered a failed experiment.
- A broader complaint that Nix/NixOS's value proposition drops sharply once you need to special-case things outside the configuration model.
- One commenter says they use dozens of flake inputs routinely without minding it, questioning whether the problem being solved is significant.

**By community**

- lobsters (skeptical): Detailed pushback arguing the project papers over deeper flake ergonomics/design flaws rather than fixing the underlying `follows` and modularity problems.
- hackernews (mixed): Discussion drifts into a general debate about whether Nix/NixOS needs mainstream adoption to be worthwhile, with only light, mostly positive-to-neutral commentary on the project itself.

**Hottest debate:** Whether bundling/lazily-fetching thousands of flakes is a real solution, versus just masking flakes' underlying design and modularity problems.

**Open questions**

- Would flake-less, `import`/`callPackage`/overlay-based composition actually eliminate the need for a project like this?
- How reliable is depending on a single external platform/cron job as the source of truth for thousands of pinned flakes?

**Highlights**

> Some guys will do anything but drop flakes (even if labeled as “meh”). The core issue is default behavior, transitive dependency pull in, has very nasty side effects & `follows` can only partially fix it while not having good ergonomics even when it does work. If instead your project makes everything in Nix `import`able or `callPackage`able, you no longer have the same issues—_&_ now your code is more composable, more overrideable, + more importantly: simpler, using mechanism Nix has had for the last 20 years. `follows` only offers the ability to align your deps, not modifying the nodes in the graph of pkgs (via overlays) or modules (via `import = [ … ]`). On modularity, note there is no mention of `system` for overlays since it just describes modifying the pkgs graph—flakes tend to push folks ergonomically in the direction of defining `packages.${system}.${…}` instead of putting it all packages in the overlay to be re-exported them as `packages` (or worse, coupling your packages to something like `flake-parts`). You can `grep` for the word `self` in your code to get a hint for coupled code (not including `makeScope` or `overlays` making `self` the arbitrary argument name). This is why often times things only tend to work inside of flakes & require that extra evaluation step. I think hiding the complexity behind this cron job on a platform with bad uptime (& no mirrors) isn’t a solution to the lack of modularity we could/should have as Nix users from Nix projects. You _do_ want to be explicit about imports… it’s that flake ergonomics + default behaviors aren’t good. Instead, I would rather see less trying to code around flake design problems & more efforts to uncouple upstreams so `follows` + dependency count/size issue becomes irrelevant since the code would be stable-Nix-compatible since it seems the stable Nix pinning options don’t even have lock explosion problems (it would even let downstream users opt out of experimental flakes, while still being compatible to those that wish to live on that edge)—especially at even any level of scale beyond a workstation, as dev tooling + circular dependencies make the JSON lock skyrocket in size (I even heard an anecdote recently of a team using Git LFS just to handle the size of the flake lock). Ironically the other way to deal with this issue in flakes is to set all inputs to `flake = false` which just returns a store path like other input pinners, just with more code, less features, & diverging flake “standards” in Nix, Lix, & Dix that lead to instability.
> — [toastal on lobsters · 1 points, 1 comments](https://lobste.rs/s/qjbw27/one_flake_rule_them_all#c_a0unaj)

> That’s a part of the problem tho. I think flakes offer a “meh” experience in terms of general, day-to-day UX improvements to your average user, but I don’t think the foundations flakes are built on should be anything we build on or try to hide its flaws *if* we start from the premise that the foundation we build on is wrong—to which something the most experienced Nix users tend to agree with. I think building *less* would be better, but raising stable Nix pattern awareness is a better route for the long-term—where experimental flakes should be labeled “experiment failed” given how deadlocked, buggy, & full of holes it is… at least not as something built into the compiler/binary.
> — [toastal on lobsters · 1 points](https://lobste.rs/s/qjbw27/one_flake_rule_them_all#c_3klzs6)

> I'm not entirely sure if it's a good idea per se, but hell, what's the point in making everything properly lazy if you couldn't. I mean me personally, I routinely use 20-30 flake inputs for large system configurations and I've never really minded this at all. The only real concern I have is that overriding Nixpkgs to avoid duplicates can occasionally break since the dependency may not be ready for the latest Nixpkgs, but this so far has only ever hit me with nix-vim, which arguably should be in Nixpkgs anyways in some form (although I haven't used it in a while so not sure what the status is.) Because you have to, I searched and found that at least one of my flakes are in there, nix-binary-ninja, which is a Nix flake for the proprietary Binary Ninja disassembler/decompiler. Neat. (FYI though, while I use that, I'm not sure I actually recommend it; it does gross things to make binja use system libraries for better integration, which right now breaks some extensions. Oh well...)
> — [jchw on hackernews](https://news.ycombinator.com/item?id=49500045)

> When I first met NixOS, it struck me as a super cool idea that would  be incredibly useful just as soon as every other piece of software/programmer in the world converted to using it. I haven't seen anything to change my mind since.
> — [wredcoll on hackernews · 4 comments](https://news.ycombinator.com/item?id=49501274)

**Source threads**

- [lobsters](https://lobste.rs/s/qjbw27/one_flake_rule_them_all) · 8 points · 3 comments
- [hackernews](https://news.ycombinator.com/item?id=49497712) · 52 points · 18 comments

## Community discussion

Top comments from developers on daily.dev.

**@agustinbarrientos** · 0 upvotes

> To compare the lock strategies, I'd run each popular flake twice, once with its own lock and once through the shared nixpkgs override. The report should include both pass rates. A large delta would send me back toward independent locks.

## Similar posts on daily.dev

- [The Great Nix Flake Check](https://daily.dev/posts/the-great-nix-flake-check-joelq4xlg) · Lobsters · 0 upvotes · 0 comments
- [nixpkgs-multiverse: every version that ever existed](https://daily.dev/posts/nixpkgs-multiverse-every-version-that-ever-existed-iamzpa09p) · Farid Zakaria’s Blog · 0 upvotes · 0 comments
- [Changelog: security fixes, OpenTelemetry tracing, baked flakes, fiber-based parallel evaluation, and more](https://daily.dev/posts/changelog-security-fixes-opentelemetry-tracing-baked-flakes-fiber-based-parallel-evaluation-and-zawrucen6) · Determinate Systems · 0 upvotes · 0 comments
- [How safe is follows?](https://daily.dev/posts/how-safe-is-follows--4wmacyttd) · Farid Zakaria’s Blog · 4 upvotes · 0 comments
- [Dependabot version updates now support the Nix ecosystem](https://daily.dev/posts/dependabot-version-updates-now-support-the-nix-ecosystem-77socdz4m) · GitHub Changelog · 0 upvotes · 0 comments

---

Tags: [#open-source](https://daily.dev/tags/open-source)

[View this post on daily.dev](https://daily.dev/posts/one-flake-to-rule-them-all-oyz5p8fiz)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"One flake to rule them all","url":"https://daily.dev/posts/one-flake-to-rule-them-all-oyz5p8fiz","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/one-flake-to-rule-them-all-oyz5p8fiz"},"datePublished":"2026-08-30T06:18:42.951Z","dateModified":"2026-10-15T02:22:54.811Z","description":"A new project called omniflake bundles nearly twelve thousand Nix flakes behind a single flake input, solving the recurring annoyance of manually adding and...","image":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","thumbnailUrl":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","isAccessibleForFree":true,"articleSection":"Farid Zakaria’s Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Farid Zakaria’s Blog","logo":"https://media.daily.dev/image/upload/s--YqqvRt90--/f_auto/v1723789280/logos/fzakaria","url":"https://daily.dev/sources/fzakaria"},"commentCount":1,"discussionUrl":"https://daily.dev/posts/one-flake-to-rule-them-all-oyz5p8fiz","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"open-source","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Farid Zakaria’s Blog","item":"https://daily.dev/sources/fzakaria"},{"@type":"ListItem","position":3,"name":"One flake to rule them all"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/one-flake-to-rule-them-all-oyz5p8fiz","comment":[{"@type":"Comment","text":"To compare the lock strategies, I’d run each popular flake twice, once with its own lock and once through the shared nixpkgs override. The report should include both pass rates. A large delta would send me back toward independent locks.","datePublished":"2026-08-31T23:57:03.618Z","url":"https://daily.dev/posts/OyZ5P8FIz#c-zhpKeD9uy","author":{"@type":"Person","name":"Agustin Barrientos","url":"https://daily.dev/agustinbarrientos","image":"https://media.daily.dev/image/upload/s--5ayxQnqn--/f_auto/v1788281802/avatars/avatar_wQYYVe5Tbj0NJ7C7qPoa8?_a=BAMAMicg0"}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/one-flake-to-rule-them-all-oyz5p8fiz#faq","mainEntity":[{"@type":"Question","name":"Why does creating a Nix flake.lock file with thousands of inputs become extremely slow?","acceptedAnswer":{"@type":"Answer","text":"Nix's lock file creation used quadratic-time string formatting when resolving name collisions: every duplicate input name (like the common 'systems' input) restarted the collision search from suffix _2 each time, so 4,000 inputs with 3,999 collisions produced about 8 million string formats. A patch (NixOS/nix pull request 16387) fixed this by remembering the highest suffix used per name, giving roughly a 21x speedup for 4,000 inputs with byte-identical lock output. Anyone hitting slow Nix lock files can track fixes like this one on daily.dev before they upgrade."}},{"@type":"Question","name":"How can I use a single Nix flake input to access thousands of other flakes without adding each one individually?","acceptedAnswer":{"@type":"Answer","text":"A project called omniflake stores a JSONL table of pre-resolved pins (the same locked object format a flake.lock entry uses) for nearly twelve thousand flakes, and only fetches a flake's tree when you actually reference it, such as omniflake.flakes.disko. It declares just five real inputs (nixpkgs plus four small libraries), so adding it only adds six nodes to your own lock file and takes about 1.5 seconds to lock. Developers tired of wiring up flake inputs by hand can follow tooling like this on daily.dev."}},{"@type":"Question","name":"Does Nix fetch or evaluate a flake input that no output actually uses?","acceptedAnswer":{"@type":"Answer","text":"No, Nix flakes are lazy: an input that no output touches is never fetched or evaluated, even if its entry in flake.lock is corrupted or points to a nonexistent revision. Only forcing an output that actually depends on that input triggers the fetch and surfaces an error, such as an HTTP 404 for a deliberately broken commit hash. Understanding Nix's laziness helps developers debugging flake performance find answers on daily.dev."}}]}
```

