containix

containerd shim that runs Nix flakes on Kubernetes without container images

Image 1 of 1: containix site: build, push and pull struck through and replaced by reference, above the pod spec

A containerd shim v2 runtime, chosen by a RuntimeClass, that reads a flake reference from a pod annotation, runs nix build, and rewrites the OCI spec so each store path in the closure is bind-mounted read-only into the rootfs before runc starts. The entrypoint is the flake's meta.mainProgram.

Trade-offs

  • A shim rather than a snapshotter or image builder. It mutates the spec at create time and sees every task RPC, whatever snapshotter the node runs.
  • No image to build or push, but CRI still requires an image: field, so a near-empty stub image must exist in a registry.
  • The Nix store stays the operator's: garbage collection, binary cache setup and the Nix daemon are outside the shim.

Q&A2

The node's binary cache. The shim builds and resolves the closure on the node, within a containix.dev/timeout that defaults to 2 minutes and caps at 30, so a cache such as Cachix or Attic keeps it short.

Reviews

Loading reviews

    More in Nix

    See all 7 →
    • trynixBoots any package from 13 years of nixpkgs in a browser tab
    • NixoriumRuns a school computer lab of NixOS PCs from one controller, offline
    • nixarchyOmarchy 4 vendored for NixOS, its menus rewired to Nix instead of pacman
    • PanixStateless deployment orchestrator for Nix flake installables across fleets
    • nix-plist-managerMac System Settings declared in Nix, named after what System Settings shows
    • unnixReproducible Nix environments without installing Nix or evaluating Nixpkgs

    More in Kubernetes

    See all 13 →
    • Cost DeckKubernetes FinOps operator: cost per namespace, schedules and safe right-sizing
    • rocketplaneIOSelf-hosted Kubernetes observability with transaction-gated agent actions
    • KatesPerformance, chaos and security testing for Kafka on Kubernetes
    • piqcRead-only scanner for wasted GPU spend in Kubernetes inference clusters
    • K8s-RightsizerApplies Kubernetes rightsizing recommendations, rolling back on failure
    • kubeagentRead-only CLI that explains why Kubernetes pods are broken

    More in Go

    See all 99 →
    • SupermetryCookie-free web and product analytics on one Go binary and PostgreSQL
    • StreambedPostgres-to-Iceberg CDC engine with a built-in Postgres wire query server
    • OmagenImage-to-theme studio for Omarchy with reversible previews and recovery
    • XDPerfXDP traffic generator with WASM packet plugins
    • pistachioDeclarative PostgreSQL schema management with a plan and apply workflow
    • PandaWardLocal application security assessment that reports what it couldn't decide