diff options
Diffstat (limited to 'system')
| -rw-r--r-- | system/gaming/default.nix | 6 | ||||
| -rw-r--r-- | system/gaming/openrgb.nix | 20 | ||||
| -rw-r--r-- | system/nvidia.nix | 8 |
3 files changed, 29 insertions, 5 deletions
diff --git a/system/gaming/default.nix b/system/gaming/default.nix index ca97345..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 ]; @@ -35,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"]; + }; +} diff --git a/system/nvidia.nix b/system/nvidia.nix index feb2edd..566da5d 100644 --- a/system/nvidia.nix +++ b/system/nvidia.nix @@ -38,6 +38,11 @@ in { package = config.boot.kernelPackages.nvidiaPackages.latest; }; + # NVIDIA Reflex + hardware.graphics.extraPackages = with pkgs; [ + low-latency-layer + ]; + # cuda environment = mkIf cfg.cuda.enable { systemPackages = with pkgs; [ @@ -50,6 +55,9 @@ in { NVIDIA_DRIVER_CAPABILITIES = "compute,utility"; CUDA_VISIBLE_DEVICES = 0; CUDA_PATH = "${pkgs.cudatoolkit}"; + # NVIDIA Reflex + LOW_LATENCY_LAYER = "1"; + LOW_LATENCY_LAYER_REFLEX = "1"; }; }; nix.settings = mkIf cfg.cuda.enable { |