Nix(OS) modules everywhere!
summary
Implements a production deployment system from scratch in Nix that uses Nix modules outside NixOS to describe provisioning, monitoring and tests, producing a per-deployment deployment shell with commands for provisioning, activating and Hydra jobs. Uses Google Cloud provisioning (Deployment Manager), a small daemon running systemd containers as a dev backend for local development and test builds, reuses monitoring dashboards locally, and runs in production; weaknesses: global option namespace, slow recursive evaluation, and tricky infinite-recursion debugging.
AI-written summary · about
chapters (14)
- 0:00Introduction to Nix modules
- 1:19Why use Nix modules
- 3:05Core principles of deployment
- 4:10Limitations of NixOps
- 5:38Production deployment overview
- 7:46Staging and development setups
- 9:56Deployment shell workflow
- 11:21Live demo of development shell
- 16:20Test deployment with Hydra
- 17:28Modularity in application modules
- 19:49Module evaluation process
- 21:46Shell builder implementation
- 22:30Issues with Nix module system
- 25:11Q&A session
