Settings needed according to https://nixos.wiki/wiki/TPM

This commit is contained in:
Lillian Violet 2024-02-22 15:31:14 +01:00
parent 5b296e8157
commit b1e4af16d8

View file

@ -170,6 +170,11 @@
dockerCompat = true;
};
security.tpm2.enable = true;
security.tpm2.pkcs11.enable = true; # expose /run/current-system/sw/lib/libtpm2_pkcs11.so
security.tpm2.tctiEnvironment.enable = true; # TPM2TOOLS_TCTI and TPM2_PKCS11_TCTI env variables
users.users.lillian.extraGroups = ["tss"]; # tss group has access to TPM devices
boot.bootspec.enable = true;
boot.kernelPackages = pkgs.linuxPackages_latest;
boot.supportedFilesystems = ["bcachefs"];