summaryrefslogtreecommitdiff
path: root/system/gaming
diff options
context:
space:
mode:
Diffstat (limited to 'system/gaming')
-rw-r--r--system/gaming/default.nix13
-rw-r--r--system/gaming/openrgb.nix20
2 files changed, 21 insertions, 12 deletions
diff --git a/system/gaming/default.nix b/system/gaming/default.nix
index 8ecb570..13d2119 100644
--- a/system/gaming/default.nix
+++ b/system/gaming/default.nix
@@ -8,6 +8,7 @@
cfg = config.gaming;
in {
imports = [
+ ./openrgb.nix
./steam.nix
];
@@ -22,13 +23,6 @@ in {
"nowatchdog"
];
- # cachyos kernel
- boot.kernelPackages = lib.mkForce pkgs.cachyosKernels.linuxPackages-cachyos-latest-lto-x86_64-v4;
- nix.settings = {
- substituters = ["https://attic.xuyh0120.win/lantian"];
- trusted-public-keys = ["lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc="];
- };
-
programs.wine = {
enable = true;
package = pkgs.wineWow64Packages.staging;
@@ -42,11 +36,6 @@ in {
rulesProvider = pkgs.ananicy-rules-cachyos;
};
- services.hardware.openrgb = {
- enable = cfg.openrgb.enable;
- package = pkgs.openrgb-with-all-plugins;
- };
-
services.scx = {
enable = true;
package = pkgs.scx.rustscheds;
diff --git a/system/gaming/openrgb.nix b/system/gaming/openrgb.nix
new file mode 100644
index 0000000..d9c64c2
--- /dev/null
+++ b/system/gaming/openrgb.nix
@@ -0,0 +1,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"];
+ };
+}