mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-06-19 08:07:14 +02:00
hardware: add support for razer mice
This commit is contained in:
parent
e7f2871b62
commit
2199fbe04c
@ -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
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user