3p/nixpkgs: fix always adding nvidia-persistenced to environment.systemPackages

This commit is contained in:
Luke Granger-Brown 2020-10-20 01:28:09 +00:00
parent 9c6d255489
commit c6071fc9d3

View file

@ -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 ];
++ optionals nvidiaPersistencedEnabled [ nvidia_x11.persistenced ];
systemd.packages = optional cfg.powerManagement.enable nvidia_x11.out;