summaryrefslogtreecommitdiff
path: root/system/gaming/openrgb.nix
blob: d9c64c2a9ac3fc265232594f7be47323b69c03c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  lib,
  config,
  pkgs,
  ...
}: let
  inherit (lib) mkIf;
  cfg = config.gaming.openrgb;
in {
  config = mkIf cfg.enable {
    services.hardware.openrgb = {
      enable = cfg.enable;
      package = pkgs.openrgb-with-all-plugins;
      startupProfile = cfg.profile;
    };

    hardware.i2c.enable = true;
    boot.kernelModules = ["i2c-dev"];
  };
}