·
nix
nixos
Sharing a host's Nix store with a builder VM
A build VM can read its host's Nix store through a read-only share. The host's files stay immutable; the VM's view of them doesn't. Its garbage collector can hide shared files behind overlay whiteouts unless the VM is told, on every start, that those files are still needed.
·
nix
remote-builds
Isolating a Nix remote builder in a microVM on a shared host
Distributed builds lend spare capacity to CI, but build scripts execute untrusted code. I isolate them in a builder VM with its own kernel, restricted access and resources the host can reclaim.