Skip to content

Commit

Permalink
nixos/rgb: inital openrgb support
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Nov 29, 2024
1 parent 9ac8d3b commit e3779b1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions hosts/desktop/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
impermanence.wipeOnBoot = true;
flatpak.enable = true;
gaming.enable = true;
rgb.enable = true;
};

imports = with inputs.hardware.nixosModules; [
Expand Down
13 changes: 13 additions & 0 deletions modules/nixos/rgb.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{ config, lib, ... }:
let
cfg = config.custom.rgb;
in
{
options.custom.rgb = {
enable = lib.mkEnableOption "openrgb";
};

config = lib.mkIf cfg.enable {
services.hardware.openrgb.enable = true;
};
}

0 comments on commit e3779b1

Please sign in to comment.