1
1
Fork 0
nixos/options/custom/services/openrazer.nix
Myned fd38deb103
openrazer: initial service
Signed-off-by: Myned <dev@bjork.tech>
2024-12-30 13:38:40 -06:00

24 lines
454 B
Nix

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