From bc7b895aa57c52e30eb392ff2527dc850b72c87b Mon Sep 17 00:00:00 2001 From: Vladimír Čunát Date: Tue, 30 May 2017 20:56:34 +0200 Subject: nvidia module: allow .persistenced == null Fixes #26250. This is fallout from PR #22304. It's null for 304 and 173 legacy drivers. --- nixos/modules/hardware/video/nvidia.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nixos/modules/hardware') diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix index 161ed9457af9..f2d71aa34e41 100644 --- a/nixos/modules/hardware/video/nvidia.nix +++ b/nixos/modules/hardware/video/nvidia.nix @@ -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 ]; -- cgit 1.4.1