Tech News
← Home  ·  All topics

Nix Build

2 GoKawiil briefs on this topic

NixOS trimmed to run stably on 512MB RAM via config changes

A NixOS user documented a multi-day effort to reduce the operating system's memory footprint, getting it to idle at roughly 96MB and complete a full rebuild within 512MB of RAM without triggering out-of-memory kills. By comparison, a stock NixOS deployment with cloud-init used 288MB at idle and needed up to 896MB to rebuild, previously causing OOM kills at 768MB on constrained setups. The changes included disabling kernel memory allocation profiling and reducing loaded kernel modules from 89 to 54.

Nix dynamic derivations turn build graphs from fixed plans into runtime decisions

A blog post examines how Nix's dynamic derivations feature fundamentally changes the nature of its build graph, shifting Nix from an 'applicative' system—where every build step is known in advance—to a 'monadic' one, where the graph can be constructed as the build itself progresses. The author revisits earlier writing on the topic after noticing renewed interest, including talks at NixCon 2026 and a new tool called cargo-dyndrv.