# What if every Nix build were bit-reproducible?

DevFeed: [What if every Nix build were bit-reproducible?](<https://devfeed.tech/articles/what-if-every-nix-build-were-bit-reproducible-126397.md>)

Original publisher: [Read original article](<https://fzakaria.com/2026/11/09/what-if-every-nix-build-were-bit-reproducible>)

Published: 2026-11-09T18:00:00Z

Content type: article

Language: en

Sources: [Farid Zakaria's Blog](<https://devfeed.tech/sources/farid-zakaria-s-blog.md>)

Topics: [Nix](<https://devfeed.tech/topics/nix.md>), [reproducible builds](<https://devfeed.tech/topics/reproducible-builds.md>), [virtual machines](<https://devfeed.tech/topics/virtual-machines.md>), [scheduling](<https://devfeed.tech/topics/scheduling.md>)

Tags: [builds](<https://devfeed.tech/tags/builds.md>), [built-from-source](<https://devfeed.tech/tags/built-from-source.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cascade](<https://devfeed.tech/tags/cascade.md>), [change](<https://devfeed.tech/tags/change.md>), [content](<https://devfeed.tech/tags/content.md>), [experimental](<https://devfeed.tech/tags/experimental.md>), [hash](<https://devfeed.tech/tags/hash.md>), [input](<https://devfeed.tech/tags/input.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-distribution](<https://devfeed.tech/tags/linux-distribution.md>), [making](<https://devfeed.tech/tags/making.md>), [model](<https://devfeed.tech/tags/model.md>), [multiple](<https://devfeed.tech/tags/multiple.md>), [nix](<https://devfeed.tech/tags/nix.md>), [rebuilds](<https://devfeed.tech/tags/rebuilds.md>), [reproducibility](<https://devfeed.tech/tags/reproducibility.md>), [reproducible-builds](<https://devfeed.tech/tags/reproducible-builds.md>), [scheduling](<https://devfeed.tech/tags/scheduling.md>), [software](<https://devfeed.tech/tags/software.md>)

## AI overview

Rewind, a deterministic virtual machine, can make Nix builds bit-reproducible by capturing implicit inputs such as time, randomness, and scheduling in a controlled environment. The article's example shows a build with a random UUID and timestamp failing Nix's determinism check on the host but producing the same bytes and content-addressed store path across Rewind builds and stores. Reproducibility can therefore enable cache hits across machines and avoid input-addressed rebuild cascades and multiple output variants. Rewind requires KVM and an advertised rewind-amd or rewind-intel host feature; fixed-output derivations are refused because the VM has no network. Reproducibility is limited to the same Rewind version and CPU vendor: changing Rewind forces rebuilds, and Intel and AMD produce different, though individually reproducible, outputs.

## Source excerpt

The holy grail of build systems and package managers is bit-reproducible1 builds. This is such a desired trait that nearly every Linux distribution has a reproducible builds project to track the progress and validity of their builds. Why is bit-reproducibility so important? Trust. You can trust that the software you are running has not been tampered with and is the same as what the developers intended if you can verify that when built from source, the output is identical. Making software bit-reproducible though is hard. There are a lot of ways that can introduce non-determinism into a build: timestamps, random seeds, thread scheduling, and more. Most distributions that have achieved "reproducible builds" have done so for only a subset of their packages, usually those that comprise the core of the ISO or distribution. Nix's default model, the extensional model (input-addressed), famously works around the need for bit-reproducibility by hashing the inputs to a build and using that hash as the store path. This lets the build be repeatable even if the output is not bit-for-bit identical. It is an incredibly pragmatic solution to making builds repeatable, but it does not solve the problem of trust. We are still trusting the outputs uploaded to cache.nixos.org have not been tampered with. Nix also has an experimental content-addressed model (intensional model) where the /nix/store paths are based on the content of the output, but crucially, it does not guarantee that the builds are bit-reproducible. This leaves us with an undesirable situation regardless of the model. For the extensional model, the smallest change in the inputs changes the store path which causes a cascade of rebuilds. For the intensional model, a single derivation can produce multiple different outputs. Extensional model input-addressed one byte changes glibc zlib openssl curl x7mq2v... 9kd0zl... p3vn8a... c1rw5y... ba4ks1... h0wq7f... 6jtm9d... rz2pl8... rebuilt rebuilt rebuilt rebuilt One input changes, every path dow