The Missing Part of Nix (and where to find it)
summary
Nix provides hermetic builds, substitutor caching, DRV provenance and signing but lacks coordination: scheduling, dispatch, queuing and lifecycle management for execution across many machines. Experiments include a janky HAProxy approach, use of nix-daemon (protocol gaps), a failed Raft-backed broker design, then a working prototype called Rio that uses SSH NG, a FUSE-backed store and Rio store with chunkcast + FastCDC deduplication; nixbuild.net is a ready SaaS option. Rio mostly works locally but has Kubernetes and autoscale rough edges.
AI-written summary Β· about
chapters (12)
- 0:00Introduction and background
- 1:01What is a distributed build system
- 2:26Pillars of distributed builds
- 4:33Nix's missing coordination layer
- 5:36Existing solutions for Nix
- 7:43Attempting to build Rio
- 9:49Rio version 2 and challenges
- 11:53Rio version 3 and improvements
- 13:39Finding the missing part
- 15:01Why coordination matters
- 16:44Rio's current state and demo
- 18:10Q&A on scheduling and sizing
