So I’ve set up my laptop with full disk encryption (including /boot) and up to this point everything works flawlessly. However, when I suspend it, it does just that: suspend and nothing more. I often carry my laptop in suspended state, and would like to have the disk locked when doing so.
Searching the internet has revealed some sources that more or less successfully got this working with Archlinux and/or some other distros (Archlinux (copies binaries to unencrypted /boot), BSD, Linux (explanation on how to do this), Archlinux). Now, before I try porting these solutions to Nixos, I would like to verify, if there is already something existing out there or if I am on my own. So:
Is there already code to luksSuspend my disks on suspend?