Automating nightly NixOS builds with a local cache server to avoid local compilation

The CUDA compilation nightmare: how I solved 18-hour builds with NixOS I recently migrated my entire fleet to NixOS (read my full migration story ). If you use NixOS on unstable and have heavy dependencies, you&rsquo;ve probably faced the dreaded &ldquo;compiling from source&rdquo; wall. It starts innocently enough. You run nixos-rebuild switch , expecting a quick update. Suddenly, Nix decides it…