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