I would like to achieve the setup in a declarative way. Currently doing this:
- Enabling
boot.initrd.systemd.enable
- Using the command
sudo systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+7 /dev/<my encrypted device>
Related post: Full disk encryption + TPM2