2023-10-24 21:00:53 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.sisyphus.services.openrgb;
|
|
|
|
in {
|
|
|
|
options.sisyphus.services.openrgb.enable = lib.mkEnableOption "OpenRGB";
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2023-10-30 10:30:03 +01:00
|
|
|
services.udev.packages = with pkgs; [
|
|
|
|
openrgb
|
|
|
|
];
|
|
|
|
|
|
|
|
boot.kernelModules = [ "i2c-dev" ];
|
|
|
|
|
|
|
|
hardware.i2c.enable = true;
|
|
|
|
|
2023-10-24 21:00:53 +02:00
|
|
|
services.hardware.openrgb = {
|
|
|
|
enable = true;
|
|
|
|
package = pkgs.openrgb-with-all-plugins;
|
|
|
|
motherboard = "intel";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|