TPM disk unlock
Setup
With secure boot in place, TPM can be used to automatically unlock encrypted partitions.
Enable TPM in the BIOS.
For each encrypted partition, setup disk unlock by replacing
<encrypted-partion>
with its identifier, e.g.nvme0n1p1
,sda1
ordisk/by-label/NIXOS
.
Troubleshooting
Outdated TPM disk unlock
After an OS or UEFI update using TPM disk unlock, the disks may not be automatically unlocked and you will be prompted for the encryption password on boot. The following steps might resolve this issue.
For each encrypted partition, remove disk unlock by replacing
<encrypted-partion>
with its identifier.Setup TPM disk unlock again.
Further reading
- TPM disk unlock on Nix