From fcddd3ba06088e235243d41395e40fd9e0107a76 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 1 Oct 2024 06:02:50 -0700 Subject: modules: move shared pc modules from desktop to pc --- modules/pc/hardware/tpm.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 modules/pc/hardware/tpm.nix (limited to 'modules/pc/hardware/tpm.nix') diff --git a/modules/pc/hardware/tpm.nix b/modules/pc/hardware/tpm.nix new file mode 100644 index 0000000..b84551e --- /dev/null +++ b/modules/pc/hardware/tpm.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: +{ + security.tpm2 = { + enable = true; + applyUdevRules = true; + abrmd.enable = true; + tctiEnvironment.enable = true; + pkcs11.enable = true; + }; + + environment.systemPackages = with pkgs; [ + tpm2-tools + tpm2-tss + tpm2-abrmd + ]; + + boot.kernelModules = [ "uhid" ]; +} -- cgit v1.2.3