summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-05-26 18:14:46 -0400
committerFreya Murphy <freya@freyacat.org>2026-05-26 18:14:46 -0400
commit800654b990749cb14b26f45ba6f02a3f24047c8d (patch)
treebe96f408b445867ef55fe97e322f0b7f3687f096
parentmake lib extendable with our additions (diff)
downloaddotfiles-nix-800654b990749cb14b26f45ba6f02a3f24047c8d.tar.gz
dotfiles-nix-800654b990749cb14b26f45ba6f02a3f24047c8d.tar.bz2
dotfiles-nix-800654b990749cb14b26f45ba6f02a3f24047c8d.zip
add openrgb support, and custom rust scheduler
-rw-r--r--hosts/kaworu/default.nix1
-rw-r--r--options.nix1
-rw-r--r--system/desktops/wayland.nix2
-rw-r--r--system/gaming/default.nix12
4 files changed, 16 insertions, 0 deletions
diff --git a/hosts/kaworu/default.nix b/hosts/kaworu/default.nix
index 48461d3..b85b86d 100644
--- a/hosts/kaworu/default.nix
+++ b/hosts/kaworu/default.nix
@@ -29,6 +29,7 @@
};
gaming = {
enable = true;
+ openrgb.enable = true;
homestuck.enable = true;
minecraft.enable = true;
steam.enable = true;
diff --git a/options.nix b/options.nix
index 6e146e7..7b44c32 100644
--- a/options.nix
+++ b/options.nix
@@ -508,6 +508,7 @@ in {
#
gaming = {
enable = mkEnableOption "Enable gaming optimizations";
+ openrgb.enable = mkEnableOption "Enable OpenRGB support";
homestuck.enable = mkEnableOption "Install the unofficial homestuck collection.";
minecraft.enable = mkEnableOption "Install the minecraft block game.";
steam.enable = mkEnableOption "Install the steam game launcher.";
diff --git a/system/desktops/wayland.nix b/system/desktops/wayland.nix
index ce647ee..382d6a1 100644
--- a/system/desktops/wayland.nix
+++ b/system/desktops/wayland.nix
@@ -26,6 +26,8 @@ in {
environment.variables = {
MOZ_ENABLE_WAYLAND = "1";
NIXOS_OZONE_WL = "1";
+ SDL_VIDEODRIVER = "wayland,x11";
+ SDL_VIDEO_DRIVER = "wayland,x11";
};
programs.xwayland.enable = true;
diff --git a/system/gaming/default.nix b/system/gaming/default.nix
index ead5de0..c68065a 100644
--- a/system/gaming/default.nix
+++ b/system/gaming/default.nix
@@ -21,9 +21,21 @@ in {
services.ananicy = {
enable = true;
+ package = pkgs.ananicy-cpp;
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;
+ scheduler = "scx_pandemonium";
+ };
+
environment.systemPackages = with pkgs; [
winetricks
];