peripherals/razer: move into Infini-DESKTOP

This commit is contained in:
Infinidoge 2024-07-26 11:36:15 -04:00
parent 32ad0bef14
commit 495185b48c
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A
2 changed files with 8 additions and 26 deletions

View file

@ -1,22 +0,0 @@
{ options, config, lib, pkgs, ... }:
with lib;
with lib.our;
let cfg = config.modules.hardware.peripherals.razer;
in
{
options.modules.hardware.peripherals.razer = {
enable = mkBoolOpt false;
};
config = mkIf cfg.enable {
hardware.openrazer = {
enable = true;
users = [ config.user.name ];
};
user.extraGroups = [ "plugdev" ];
home.home.packages = with pkgs; [ razergenie ]; # TODO replace with polychromatic
};
}