From 91ee547c4834b2622bb641f3d1784bd64dd33604 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Sun, 8 Oct 2023 20:37:02 +0100 Subject: [PATCH] fix: how specify groups --- common/tpm.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/tpm.nix b/common/tpm.nix index 7013421..646efb4 100644 --- a/common/tpm.nix +++ b/common/tpm.nix @@ -3,8 +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" ]; + users.groups.uhid = { + members = [ "ash" ]; + }; services.udev.extraRules = '' KERNEL=="uhid", SUBSYSTEM=="misc", GROUP="uhid", MODE="0660" '';