summaryrefslogtreecommitdiff
path: root/system/nvidia.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-05-26 23:16:31 -0400
committerFreya Murphy <freya@freyacat.org>2026-05-26 23:16:31 -0400
commit6778e976f62ad3500aad439ff6959ebc405e0a8d (patch)
tree81a25a3a1bc170577e09e02db41ee72435f265c0 /system/nvidia.nix
parentuse CachyOS kernel (diff)
downloaddotfiles-nix-6778e976f62ad3500aad439ff6959ebc405e0a8d.tar.gz
dotfiles-nix-6778e976f62ad3500aad439ff6959ebc405e0a8d.tar.bz2
dotfiles-nix-6778e976f62ad3500aad439ff6959ebc405e0a8d.zip
add low latency layer for nvidia
Diffstat (limited to 'system/nvidia.nix')
-rw-r--r--system/nvidia.nix8
1 files changed, 8 insertions, 0 deletions
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 {