1
1
Fork 0

openrazer: initial service

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-12-30 13:38:40 -06:00
parent 37e104fac8
commit fd38deb103
Signed by: Myned
GPG key ID: C7224454F7881A34
2 changed files with 25 additions and 0 deletions

View file

@ -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;

View 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];
};
}