From 642a94830d595bc9d41e56387b432faa10acbc29 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Sun, 8 Oct 2023 17:35:48 +0100 Subject: [PATCH] feat: enable TPM on alex --- common/tpm.nix | 6 ++++++ hosts/alex/configuration.nix | 1 + 2 files changed, 7 insertions(+) create mode 100644 common/tpm.nix diff --git a/common/tpm.nix b/common/tpm.nix new file mode 100644 index 0000000..f13c9d4 --- /dev/null +++ b/common/tpm.nix @@ -0,0 +1,6 @@ +{ ... }: { + security.tpm2.enable = true; + security.tpm2.pkcs11.enable = true; + security.tpm2.tctiEnvironment.enable = true; + users.users.ash.extraGroups = [ "tss" ]; +} diff --git a/hosts/alex/configuration.nix b/hosts/alex/configuration.nix index d6db335..e65c5be 100644 --- a/hosts/alex/configuration.nix +++ b/hosts/alex/configuration.nix @@ -3,6 +3,7 @@ ../../common/generic.nix ../../common/generic-desktop.nix ../../common/generic-uefi.nix + ../../common/tpm.nix ./hardware-config.nix ];