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