Enable TPM2 security in x86_64-linux SGX hardware configuration

The commit turns on the TPM2 security feature and its associated Access Broker and Resource Manager daemon (abrmd) in the hardware configuration for the x86_64-linux SGX system. This action, represented by changing the respective entries from false to true, enhances the security of this system configuration.
This commit is contained in:
Harald Hoyer 2024-04-10 22:10:34 +02:00
parent 4066b0cd80
commit d5287f242e

View file

@ -4,10 +4,9 @@
{ pkgs, config, lib, modulesPath, ... }:
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
];
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "uas" "sd_mod" ];
boot.initrd.kernelModules = [ ];
@ -80,7 +79,7 @@
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
security.tpm2.enable = false;
security.tpm2.abrmd.enable = false;
security.tpm2.enable = true;
security.tpm2.abrmd.enable = true;
powerManagement.cpuFreqGovernor = "ondemand";
}