adisbladis

mDNS discovery for Nix binary caches

44
0
85% credibility
Found May 27, 2026 at 44 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Go
AI Summary

nix-cache-beacon is a tool that turns your local network of Nix computers into a shared, distributed package cache. It uses automatic network discovery to find other Nix computers running the same tool, then races all discovered caches when downloading packages so the fastest one wins. Your computer can both download packages from others on the network and share its own cached packages with them. Security is maintained—all packages are still verified with cryptographic signatures before being trusted.

How It Works

1
💡 You want faster package downloads

You've been using Nix on multiple computers and notice you keep downloading the same packages over and over.

2
🔍 You discover cache sharing

You learn about a tool that can automatically find other Nix computers on your network and share downloaded packages between them.

3
You enable the beacon

With a simple NixOS setting, your computer starts announcing itself as a package source to other computers on your network.

4
🔗 Your computers find each other

The magic happens automatically—your Nix computers discover each other on the local network without any manual setup.

5
Two ways to benefit
📦
Downloading packages

When you need a package, your computer asks all discovered caches at once and uses whichever responds first.

🤝
Sharing your cache

Other computers on your network can download packages from your computer's cached store.

6
🔒 Security stays intact

Every package is still verified with cryptographic signatures before it's trusted, just like normal Nix behavior.

🎉 Your network becomes a shared cache

Download once, share everywhere—your entire network of Nix computers works together as one fast, distributed package cache.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 44 to 44 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is nix-cache-beacon?

nix-cache-beacon is a Go tool that turns your entire Nix network into a distributed binary cache using mDNS service discovery. Instead of each Nix node downloading packages independently, machines on the same network can automatically discover and share cached binaries from one another. It announces your local cache via mDNS, finds other caches on the network, and races requests against all available sources to grab packages from whoever responds fastest. The project includes a NixOS module that wires directly into your system's configuration, making setup nearly frictionless for NixOS users.

Why is it gaining traction?

The hook here is zero-configuration network-wide caching. Traditional Nix caching requires manual setup of substituters and trusted keys across every machine. nix-cache-beacon automates discovery and load-balancing across your LAN with almost no config. For teams running Nix in environments without internet access or with limited bandwidth, this means significant build time savings without managing a central cache server. The cache racing approach also provides a built-in resilience layer—if one cache goes down, others pick up seamlessly.

Who should use this?

NixOS users managing multiple machines on a LAN will get the most value, especially in office, lab, or home environments where machines share similar dependencies. DevOps teams building Nix images in CI can use this to accelerate builds across workers. It's less relevant for single-machine setups or users already running a well-configured central cache like Cachix.

Verdict

This is a clever, niche tool that solves a real problem for Nix power users, but it's early-stage software with 44 stars and an alpha designation. The security model holds (signatures still verified), though unencrypted mDNS traffic is worth noting for sensitive environments. The 0.8500000238418579% credibility score reflects a small but active project with decent test coverage. Worth trying in a non-production environment first, particularly if you're already deep in NixOS infrastructure.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.