From e7ec0f9dea0e940a0149f3499d5661c6c6e7c3c7 Mon Sep 17 00:00:00 2001 From: albert Date: Sun, 17 Mar 2024 15:20:50 +0900 Subject: [PATCH] Add rivalcfg to manage steelseries mice --- nixos/common/modules/udev-rules.nix | 22 +++++++++++++++++++++- nixos/hosts/nixos-framework/default.nix | 3 ++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/nixos/common/modules/udev-rules.nix b/nixos/common/modules/udev-rules.nix index 21a4b1c1..578b32b6 100644 --- a/nixos/common/modules/udev-rules.nix +++ b/nixos/common/modules/udev-rules.nix @@ -13,5 +13,25 @@ ATTR{idVendor}=="0bda", ATTR{idProduct}=="815[2,3,5,6]", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}" LABEL="usb_realtek_net_end" + + # Steelseries Aerox 3 "rivalcfg" rules + + + # Generated by rivalcfg v4.11.0 + # Do not edit this file. It can be regenerated with the following command: + # + # rivalcfg --update-udev + + # SteelSeries Aerox 3 + SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1836", MODE="0666" + SUBSYSTEM=="usb", ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1836", MODE="0666" + + # SteelSeries Aerox 3 Wireless (wired mode) + SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1038", ATTRS{idProduct}=="183a", MODE="0666" + SUBSYSTEM=="usb", ATTRS{idVendor}=="1038", ATTRS{idProduct}=="183a", MODE="0666" + + # SteelSeries Aerox 3 Wireless (2.4 GHz wireless mode) + SUBSYSTEM=="hidraw", ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1838", MODE="0666" + SUBSYSTEM=="usb", ATTRS{idVendor}=="1038", ATTRS{idProduct}=="1838", MODE="0666" ''; -} \ No newline at end of file +} diff --git a/nixos/hosts/nixos-framework/default.nix b/nixos/hosts/nixos-framework/default.nix index 513c4369..7bec4c77 100644 --- a/nixos/hosts/nixos-framework/default.nix +++ b/nixos/hosts/nixos-framework/default.nix @@ -77,6 +77,7 @@ nvtop-amd distrobox # RGB stuff - pkgs.openrgb-with-all-plugins + openrgb-with-all-plugins + rivalcfg ]; }