add tpm-fido

This commit is contained in:
Shelvacu
2025-02-28 12:29:29 -08:00
committed by Shelvacu on fw
parent 1fd32caddd
commit 80bb444432
2 changed files with 12 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
./radicle.nix
./orca-slicer.nix
./razer.nix
./tpm-fido.nix
];
vacu.hostName = "fw";

11
fw/tpm-fido.nix Normal file
View File

@@ -0,0 +1,11 @@
{ config, ... }:
{
vacu.packages = [ "tpm-fido" ];
users.groups.uhid = {};
users.users.shelvacu.extraGroups = [ config.security.tpm2.tssGroup config.users.groups.uhid.name ];
security.tpm2.enable = true;
security.tpm2.applyUdevRules = true;
services.udev.extraRules = ''
KERNEL=="uhid", SUBSYSTEM=="misc", GROUP="${config.users.groups.uhid.name}", MODE="0660"
'';
}