sgx: enable working aesm with normal dcap

Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2024-03-20 15:49:59 +01:00
parent ab7be188fc
commit 0b9fb35062

View file

@ -33,7 +33,17 @@ in
security.tpm2.enable = false;
security.tpm2.abrmd.enable = false;
# services.aesmd.enable = true;
services.aesmd = {
enable = true;
quoteProviderLibrary = pkgs.nixsgx.sgx-dcap.default_qpl;
};
systemd.services.aesmd = {
environment.LD_LIBRARY_PATH = lib.mkForce (lib.makeLibraryPath [ pkgs.nixsgx.sgx-dcap.default_qpl pkgs.curl.out ]);
serviceConfig.BindReadOnlyPaths = [
"/etc/sgx_default_qcnl.conf"
];
};
services.pcscd.enable = true;
powerManagement.cpuFreqGovernor = "ondemand";