feat(stolas): enable TPM2 LUKS keyslot

This commit is contained in:
Tim Schubert 2025-07-26 13:43:39 +02:00
parent 215f4313bd
commit 77cdf773c0
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View file

@ -32,6 +32,8 @@
"usb_storage" "usb_storage"
"sd_mod" "sd_mod"
]; ];
# Ensure that TPM module is loaded
kernelModules = [ "tpm" ];
}; };
}; };

View file

@ -30,10 +30,12 @@
content = { content = {
type = "luks"; type = "luks";
name = "crypted"; name = "crypted";
#passwordFile = "/tmp/secret.key"; # Interactive
settings = { settings = {
allowDiscards = true; allowDiscards = true;
#keyFile = "/tmp/secret.key"; crypttabExtraOpts = [
"tpm2-device=auto"
"tpm2-pin=true"
];
}; };
#additionalKeyFiles = [ "/tmp/additionalSecret.key" ]; #additionalKeyFiles = [ "/tmp/additionalSecret.key" ];
content = { content = {