forest/common/tpm.nix

12 lines
343 B
Nix
Raw 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:31:14 +00:00
users.groups.uhid = {};
users.users.ash.extraGroups = [ "uhid" ];
services.udev.extraRules = ''
KERNEL=="uhid", SUBSYSTEM=="misc", GROUP="uhid", MODE="0660"
'';
2023-10-08 16:35:48 +00:00
}