This repo is a fork of Frost-Phoenix's Flakes
./modules: contains common./modules/<core OR home>/default.<host>.nix: imports specific modules for specific hosts./modules/<core OR home>/default.nix: imports common modules used by all hosts
- Cmd to set partition to unlock at boot:
sudo systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+7 /dev/nvme0n1px- When above setup breaks:
- The corresponding luks keyslot and token become useless and have to be deleted
- The above cmd has to be executed again
Here's how to cleanup the broken parts:
Extract info on the device to check which token and which key it uses:
sudo cryptsetup luksDump /dev/nvme0n1pxFor the keyslot:
sudo cryptsetup luksKillSlot /dev/nvme0n1px <keyslotNo>For the token:
sudo cryptsetup token remove --token-id <tokenNo> /dev/nvme0n1px