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"
|
"usb_storage"
|
||||||
"sd_mod"
|
"sd_mod"
|
||||||
];
|
];
|
||||||
|
# Ensure that TPM module is loaded
|
||||||
|
kernelModules = [ "tpm" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue