From d4504b9705e0913c6608a02dfb8dafc05f24ed18 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Mon, 6 Jul 2026 07:44:14 +0300 Subject: [PATCH] Rias: openrgb --- host/Rias/configuration.nix | 1 + host/Rias/modules/rgb.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 host/Rias/modules/rgb.nix diff --git a/host/Rias/configuration.nix b/host/Rias/configuration.nix index 1c4f9a2..7a9030e 100644 --- a/host/Rias/configuration.nix +++ b/host/Rias/configuration.nix @@ -3,6 +3,7 @@ ./secrets/secrets.nix ./modules/grub.nix ./modules/syncthing.nix + ./modules/rgb.nix ../modules/gpu/nvidia.nix (import ../modules/common.nix { diff --git a/host/Rias/modules/rgb.nix b/host/Rias/modules/rgb.nix new file mode 100644 index 0000000..ad087a6 --- /dev/null +++ b/host/Rias/modules/rgb.nix @@ -0,0 +1,17 @@ +{ pkgs, ... }:{ + services.hardware.openrgb = { + enable = true; + package = pkgs.openrgb-with-all-plugins; + }; + + environment.systemPackages = with pkgs; [ + openrgb-with-all-plugins + i2c-tools + pciutils + ]; + + hardware.i2c.enable = true; + boot.kernelModules = [ "i2c-dev" ]; + + users.groups.i2c.members = [ "sweetbread" ]; +} \ No newline at end of file