Article may be outdated

This article is 6 days old. Some details may have changed since publication.

Hacker News·5 min read·hard

One Nix flake to rule them all

I
ingve
One Nix flake to rule them all
AI Summary

The author introduces 'omniflake,' a tool designed to simplify the management of Nix flakes by aggregating thousands of inputs into a single source. This addresses the common frustration of dependency management in the Nix ecosystem.

Why it matters

It provides a technical solution to improve developer productivity and dependency handling within the Nix package management community.

Dive DeeperCreate a free account to unlock

Flakes are undoubtedly here to stay, and I’ve made my opinion on them well-known: they are “meh”.

Despite their ever-presence, adding a flake input continues to be a small annoyance that never goes away. It’s touted as a positive feature that flakes are federated but the reality is that I want the simplicity of a centralized flake. That was the beauty and power of nixpkgs .

The process is: you want disko , so you add a url , then a follows so it stops dragging in its own nixpkgs, and then you do it again for the next one. This has become a meme in the Nix community about how every flake drags in its own flake-utils .

So I wondered: could one flake carry every other flake, and you just reach in for whatever you need? 🤯

omniflake is thousands of Nix flakes behind one flake input.

Continue reading on Headlinne

Create a free account to read the full article.

Read full article →
technologystartups

Get smarter about the news

Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.

Create free account

Already have an account? Sign in