openrazer: initial service
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
37e104fac8
commit
fd38deb103
2 changed files with 25 additions and 0 deletions
|
@ -21,6 +21,7 @@ with lib; {
|
|||
#// kdeconnect.enable = true;
|
||||
libinput.enable = true;
|
||||
logind.enable = true;
|
||||
openrazer.enable = true;
|
||||
pipewire.enable = true;
|
||||
playerctld.enable = true;
|
||||
ratbagd.enable = true;
|
||||
|
|
24
options/custom/services/openrazer.nix
Normal file
24
options/custom/services/openrazer.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.custom.services.openrazer;
|
||||
in {
|
||||
options.custom.services.openrazer = {
|
||||
enable = mkOption {default = false;};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# https://wiki.nixos.org/wiki/Hardware/Razer
|
||||
hardware.openrazer = {
|
||||
enable = true;
|
||||
users = [config.custom.username];
|
||||
};
|
||||
|
||||
# https://polychromatic.app/
|
||||
environment.systemPackages = [pkgs.polychromatic];
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue