about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorEdmund Wu2020-10-14 21:41:37 -0400
committerJon2020-10-18 11:24:20 -0700
commit2e67196d79fe0422fa5f4e519c7309e2103f029c (patch)
tree38bb7d0088c7fce99a2d0652058d7d32b35c5b8a /nixos/modules
parentc3054b77d784910372bc9d83d2a6bb0915bc01b7 (diff)
nixos/nvidia: decouple nvidia_x11.persistenced
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/hardware/video/nvidia.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix
index 2acb891f1a9a..6c2d747ee859 100644
--- a/nixos/modules/hardware/video/nvidia.nix
+++ b/nixos/modules/hardware/video/nvidia.nix
@@ -235,7 +235,7 @@ in
     hardware.opengl.extraPackages32 = optional offloadCfg.enable nvidia_libs32;
 
     environment.systemPackages = [ nvidia_x11.bin nvidia_x11.settings ]
-      ++ filter (p: p != null) [ nvidia_x11.persistenced ];
+      ++ optional nvidiaPersistencedEnabled [ nvidia_x11.persistenced ];
 
     systemd.packages = optional cfg.powerManagement.enable nvidia_x11.out;