Building a Reproducible Multi-Machine Setup with NixOS Flakes

Building a Reproducible Multi-Machine Setup with NixOS Flakes After years of manually configuring Linux systems and dealing with the inevitable drift that comes with imperative system management, I made the switch to NixOS. What started as curiosity about functional package management has evolved into a completely declarative approach to system configuration that I can’t imagine living without. In this post, I’ll walk through how I structure my NixOS configuration using flakes to manage multiple machines, integrate home-manager for user environments, and handle secrets with agenix. You can find the complete configuration on GitHub. ...

20 Dec 2024 · 8 min · 1518 words