diff --git a/common/tpm.nix b/common/tpm.nix index f13c9d4..7013421 100644 --- a/common/tpm.nix +++ b/common/tpm.nix @@ -3,4 +3,9 @@ security.tpm2.pkcs11.enable = true; security.tpm2.tctiEnvironment.enable = true; users.users.ash.extraGroups = [ "tss" ]; + users.groups.uhid = {}; + users.users.ash.extraGroups = [ "uhid" ]; + services.udev.extraRules = '' + KERNEL=="uhid", SUBSYSTEM=="misc", GROUP="uhid", MODE="0660" + ''; }