mirror of
https://github.com/js0ny/dotfiles.git
synced 2026-03-22 18:52:43 +00:00
add(udev):hidraw
This commit is contained in:
parent
ac6ce14c29
commit
77d8c98415
1 changed files with 11 additions and 0 deletions
11
nixcfgs/modules/nixos/hardware/hidraw.nix
Normal file
11
nixcfgs/modules/nixos/hardware/hidraw.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{...}: {
|
||||
services.udev.extraRules = ''
|
||||
KERNEL=="hidraw*", ATTRS{idVendor}=="19f5", SUBSYSTEM=="hidraw", GROUP="hidraw", MODE="0660"
|
||||
'';
|
||||
|
||||
users.groups.hidraw = {};
|
||||
|
||||
users.users.js0ny = {
|
||||
extraGroups = ["hidraw"];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue