hardware: add support for razer mice

This commit is contained in:
Donovan Glover 2025-05-29 09:39:57 -04:00
parent e7f2871b62
commit 2199fbe04c
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -6,6 +6,8 @@
}: }:
let let
inherit (config.modules.system) username;
inherit (builtins) toJSON; inherit (builtins) toJSON;
inherit (lib) inherit (lib)
@ -35,7 +37,14 @@ in
}; };
config = { config = {
hardware.bluetooth.enable = mkIf bluetooth true; hardware = {
bluetooth.enable = mkIf bluetooth true;
openrazer = mkIf mouseSettings {
enable = true;
users = [ username ];
};
};
services = { services = {
ratbagd.enable = mkIf mouseSettings true; ratbagd.enable = mkIf mouseSettings true;
@ -77,6 +86,7 @@ in
with pkgs; with pkgs;
[ [
piper piper
polychromatic
] ]
); );