feat(stolas): enable TPM2 LUKS keyslot
This commit is contained in:
parent
215f4313bd
commit
77cdf773c0
2 changed files with 6 additions and 2 deletions
|
@ -32,6 +32,8 @@
|
|||
"usb_storage"
|
||||
"sd_mod"
|
||||
];
|
||||
# Ensure that TPM module is loaded
|
||||
kernelModules = [ "tpm" ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -30,10 +30,12 @@
|
|||
content = {
|
||||
type = "luks";
|
||||
name = "crypted";
|
||||
#passwordFile = "/tmp/secret.key"; # Interactive
|
||||
settings = {
|
||||
allowDiscards = true;
|
||||
#keyFile = "/tmp/secret.key";
|
||||
crypttabExtraOpts = [
|
||||
"tpm2-device=auto"
|
||||
"tpm2-pin=true"
|
||||
];
|
||||
};
|
||||
#additionalKeyFiles = [ "/tmp/additionalSecret.key" ];
|
||||
content = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue