forest/common/tpm.nix

13 lines
327 B
Nix
Raw Permalink Normal View History

2023-10-08 16:35:48 +00:00
{ ... }: {
security.tpm2.enable = true;
security.tpm2.pkcs11.enable = true;
security.tpm2.tctiEnvironment.enable = true;
users.users.ash.extraGroups = [ "tss" ];
2023-10-08 19:37:02 +00:00
users.groups.uhid = {
members = [ "ash" ];
};
2023-10-08 19:31:14 +00:00
services.udev.extraRules = ''
KERNEL=="uhid", SUBSYSTEM=="misc", GROUP="uhid", MODE="0660"
'';
2023-10-08 16:35:48 +00:00
}