add FDE for quadphone and quadtop

This commit is contained in:
Henry Hiles 2026-11-18 22:10:24 -05:00
commit 4c451ce3df
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

14
clients/quadphone/fde.nix Normal file
View file

@ -0,0 +1,14 @@
{
# The image is built with an empty LUKS passphrase (systemd-repart can't take a
# key file through the NixOS image builder). After flashing, set a real passphrase
# and rotate the volume key, since the image's key is sitting in the nix store:
# run0 systemd-cryptenroll --password --wipe-slot=empty /dev/disk/by-partlabel/nixos
# run0 cryptsetup reencrypt /dev/disk/by-partlabel/nixos
image.repart.partitions."30-root".repartConfig.Encrypt = "key-file";
boot.initrd = {
luks.forceLuksSupportInInitrd = true;
availableKernelModules = [ "msm" ];
unl0kr.enable = true;
};
}