YubiKey 5 series lineup.

YubiKey based Full Disk Encryption on NixOS

This article describes how to set up YubiKey-based Full Disk Encryption (FDE) on NixOS. The YubiKeys are used as single-factor authentication devices and allow the system to automatically decrypt the disk during boot without user interaction, as long as a key is plugged in. This is mostly intended as a quick guide for myself and my NixOS configuration repository. It is heavily based on this wiki, which provides a more general guide. ...

2026-03-21 · (updated 2026-03-22) · 7 min