From cacb6c01e9e04423785a9d2fc16403cd9a2b069b Mon Sep 17 00:00:00 2001 From: Jelle Spreeuwenberg Date: Tue, 28 Apr 2026 16:16:25 +0200 Subject: [PATCH] feat: make YUNZII keyboard accessible --- modules/capabilities/hidraw-access.nix | 8 ++++++++ modules/profiles/workstation-base.nix | 1 + 2 files changed, 9 insertions(+) create mode 100644 modules/capabilities/hidraw-access.nix 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";