mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-07 21:16:33 +01:00
19 lines
478 B
Nix
19 lines
478 B
Nix
{ options, config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
#with lib.internal;
|
|
let cfg = config.custom.hardware.rgb;
|
|
in
|
|
{
|
|
options.custom.hardware.rgb = with types; {
|
|
enable = mkBoolOpt false "Whether or not to enable openrgb";
|
|
motherboard = mkOpt str "intel" "Which motherboard to use"; # Move to common CPU module at some point
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
services.hardware.openrgb.enable = true;
|
|
services.hardware.openrgb.motherboard = cfg.motherboard;
|
|
|
|
};
|
|
}
|