feature(boot): add luks unlock method using TPM+PIN

This commit is contained in:
2026-10-03 13:25:18 +02:00
parent a7bba82b5b
commit d26bd424cc
3 changed files with 28 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# Unlock cryptroot with the TPM and a PIN, the passphrase stays as fallback.
# The TPM only releases the key while PCR 7 (the Secure Boot state) matches,
# so this needs lanzaboote.nix. Enrolled once per host with
# `systemd-cryptenroll`, see INSTALLATION.md.
{
boot.initrd.luks.devices."cryptroot".crypttabExtraOpts = [ "tpm2-device=auto" ];
}