Skip to content

Commit

Permalink
nvidia module: allow .persistenced == null
Browse files Browse the repository at this point in the history
Fixes #26250.  This is fallout from PR #22304.
It's null for 304 and 173 legacy drivers.

(cherry picked from commit bc7b895)
  • Loading branch information
vcunat committed May 30, 2017
1 parent 569742c commit 7cbf7f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos/modules/hardware/video/nvidia.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ in
hardware.opengl.package = nvidiaPackage nvidia_x11 pkgs;
hardware.opengl.package32 = nvidiaPackage nvidia_libs32 pkgs_i686;

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

boot.extraModulePackages = [ nvidia_x11.bin ];

Expand Down

0 comments on commit 7cbf7f5

Please sign in to comment.