mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-18 23:56:55 +02:00
hardware: add support for razer mice
This commit is contained in:
parent
e7f2871b62
commit
2199fbe04c
@ -6,6 +6,8 @@
|
||||
}:
|
||||
|
||||
let
|
||||
inherit (config.modules.system) username;
|
||||
|
||||
inherit (builtins) toJSON;
|
||||
|
||||
inherit (lib)
|
||||
@ -35,7 +37,14 @@ in
|
||||
};
|
||||
|
||||
config = {
|
||||
hardware.bluetooth.enable = mkIf bluetooth true;
|
||||
hardware = {
|
||||
bluetooth.enable = mkIf bluetooth true;
|
||||
|
||||
openrazer = mkIf mouseSettings {
|
||||
enable = true;
|
||||
users = [ username ];
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
ratbagd.enable = mkIf mouseSettings true;
|
||||
@ -77,6 +86,7 @@ in
|
||||
with pkgs;
|
||||
[
|
||||
piper
|
||||
polychromatic
|
||||
]
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user