diff --git a/modules/capabilities/hidraw-access.nix b/modules/capabilities/hidraw-access.nix new file mode 100644 index 0000000..e8f192b --- /dev/null +++ b/modules/capabilities/hidraw-access.nix @@ -0,0 +1,8 @@ +{ + flake.modules.nixos.hidraw-access = { + services.udev.extraRules = '' + # ROYUAN YUNZII B75 PRO + KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="3151", ATTRS{idProduct}=="4015", MODE="0660", GROUP="users" + ''; + }; +} diff --git a/modules/profiles/workstation-base.nix b/modules/profiles/workstation-base.nix index 8ba689f..f137a86 100644 --- a/modules/profiles/workstation-base.nix +++ b/modules/profiles/workstation-base.nix @@ -23,6 +23,7 @@ in nixosModules.systemd-boot nixosModules.theme nixosModules.ai + nixosModules.hidraw-access ]; services.dbus.implementation = "broker";