Skip to content

Commit 7cbf7f5

Browse files
committedMay 30, 2017
nvidia module: allow .persistenced == null
Fixes #26250. This is fallout from PR #22304. It's null for 304 and 173 legacy drivers. (cherry picked from commit bc7b895)
1 parent 569742c commit 7cbf7f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎nixos/modules/hardware/video/nvidia.nix

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ in
5656
hardware.opengl.package = nvidiaPackage nvidia_x11 pkgs;
5757
hardware.opengl.package32 = nvidiaPackage nvidia_libs32 pkgs_i686;
5858

59-
environment.systemPackages = [ nvidia_x11.bin nvidia_x11.settings nvidia_x11.persistenced ];
59+
environment.systemPackages = [ nvidia_x11.bin nvidia_x11.settings ]
60+
++ lib.filter (p: p != null) [ nvidia_x11.persistenced ];
6061

6162
boot.extraModulePackages = [ nvidia_x11.bin ];
6263

0 commit comments

Comments
 (0)
Please sign in to comment.