flake/machines/nixos/hardware/misc/tpm.nix

11 lines
349 B
Nix
Raw Normal View History

{...}: {
2023-09-19 00:17:43 +00:00
# TPM is currently broken on latest kernel,
# but luckily, linux-zen have a patch for it
# UPDATE: it got fixed in 6.5.3
security.tpm2 = {
enable = true;
pkcs11.enable = true; # expose /run/current-system/sw/lib/libtpm2_pkcs11.so
tctiEnvironment.enable = true; # tpm2tools_tcti and tpm2_pkcs11_tcti env variables
};
}