Tagged with

Nix

6 articles tagged with "Nix"

·
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.

·
nix ctf

Rebuilding a kernel exploit with Nix

A kernel exploit targeted a program that NixOS keeps at a different path. Rebuilding dirtyfrag with Nix meant finding and pinning the exact executable, while exposing a kernel bug the build sandbox cannot contain.

·
nix ctf

A page-cache bug the Nix sandbox can't contain

A decryption can fail and still leave the file it read changed. The move that lands root isn't reading the dropped binary - it's reading what the recipe retargets.

·
obd-ii diagnostics

My car has been grading itself since 2018. It keeps throwing the grades away.

Every car since ~1996 runs self-tests on its own emissions hardware and grades them against the manufacturer's limits - then overwrites the results. This is about keeping them: reading OBD-II Mode 06 and watching the drift toward failure months before a fault code sets.

·
nix phoenix

One Script, Two Websites, Sixty Seconds

Deploying a Phoenix app and a static site to a single DigitalOcean droplet with Nix flakes and deploy-rs - the full config, the scaling model, and what I'd do differently.