nix-dotfiles/modules/hardware/rgb.nix

14 lines
285 B
Nix

{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.modules.hardware.rgb;
in {
options.modules.hardware.rgb = {
enable = mkEnableOption "Enable support for rgb devices through openrgb";
};
config = mkIf cfg.enable {
services.hardware.openrgb.enable = true;
};
}