Automatic NixOS upgrades with a CI-managed flake lock and deploy keys

Posted on Sat 28 November 2026 in NixOS • Tagged with nixos, flakes, github-actions, auto-upgrade, deploy-keys

Across my NixOS machines, I wanted flake.lock managed in one place for automatic upgrades. A daily GitHub Action updates the lock, and each host pulls it over SSH with its own read-only deploy key.


Continue reading

Unlock a LUKS-encrypted disk over SSH with NixOS initrd networking

Posted on Sun 17 May 2026 in NixOS • Tagged with nixos, luks, ssh, initrd, encryption

A headless server with an encrypted root disk needs a passphrase on every boot. NixOS can bring up the network in the initrd and run an SSH server, so you can unlock the disk from another machine.


Continue reading