mirror of
https://forgejo.merr.is/annika/nixos.git
synced 2025-12-12 12:01:01 -05:00
20 lines
495 B
Nix
20 lines
495 B
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
options = {
|
|
openrgb = {
|
|
enable = lib.mkEnableOption {
|
|
description = "Enable OpenRGB";
|
|
default = false;
|
|
};
|
|
};
|
|
};
|
|
config = lib.mkIf (config.gui.enable && config.openrgb.enable) {
|
|
services.hardware.openrgb = {
|
|
enable = true;
|
|
motherboard = "amd";
|
|
package = pkgs.openrgb-with-all-plugins;
|
|
};
|
|
# environment.systemPackages = [ pkgs.i2c-tools ];
|
|
users.groups.i2c.members = [ config.user ];
|
|
};
|
|
}
|