# One Nix flake to rule them all: 12,000 flakes in a single input

> Hacker News story 49497712 · language: en · submitted 2026-08-30
> Web version: https://zeli.app/story/49497712
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 90 · by [ingve](<https://news.ycombinator.com/user?id=ingve>) · 💬 14
[original](<https://fzakaria.com/2026/08/28/one-flake-to-rule-them-all>) · [HN discussion](<https://news.ycombinator.com/item?id=49497712>)

## Summary

A Nix developer grew tired of adding flake inputs one by one, each dragging in its own nixpkgs. So he built omniflake, a single flake that carries nearly 12,000 other flakes behind one input, accessible lazily. The trick: instead of declaring thousands of inputs, omniflake stores pins in a JSONL index and fetches only what you ask for. He also fixed a quadratic slowdown in Nix's lock file generation, making the megaflake practical.

## Key quote

> I love the idea of federation but I want the simplicity of centralization. As Nix users, I want my cake and I want to eat it too: omniflake is my cake.

## HN discussion (14 comments)

### [wredcoll](<https://news.ycombinator.com/item?id=49501274>)

> When I first met NixOS, it struck me as a super cool idea that would  be incredibly useful 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.

### [jchw](<https://news.ycombinator.com/item?id=49500045>)

> 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...)

### [AyanamiKaine](<https://news.ycombinator.com/item?id=49498483>)

> Wow, it looks really cool!
>
> I will definitely try it! If there is one think that breaks me is always chasing that one shared library for example when developing something using SDl3 and its GPU API.

---

## Cite

- Page: https://zeli.app/story/49497712
- Date: 2026-08-30
- Source: fzakaria.com (https://fzakaria.com/2026/08/28/one-flake-to-rule-them-all)
- Hacker News: https://news.ycombinator.com/item?id=49497712

## Other languages

- zh: https://zeli.app/zh/story/49497712 · markdown: https://zeli.app/zh/story/49497712.md
- ja: https://zeli.app/ja/story/49497712 · markdown: https://zeli.app/ja/story/49497712.md
- ko: https://zeli.app/ko/story/49497712 · markdown: https://zeli.app/ko/story/49497712.md
- de: https://zeli.app/de/story/49497712 · markdown: https://zeli.app/de/story/49497712.md
- es: https://zeli.app/es/story/49497712 · markdown: https://zeli.app/es/story/49497712.md
- ru: https://zeli.app/ru/story/49497712 · markdown: https://zeli.app/ru/story/49497712.md
