diff options
author | rebecca skinner <rebecca@rebeccaskinner.net> | 2021-09-08 23:28:22 -0500 |
---|---|---|
committer | rebecca skinner <rebecca@rebeccaskinner.net> | 2021-09-08 23:33:07 -0500 |
commit | e7996ab6cef26b3885ee0d337bcbd7de75c2988f (patch) | |
tree | 968e177b7062fa72ddccb0a91c313a945f8fcce9 /nixos | |
parent | 85739f69316c7242929ea62576495f6fe4479e3b (diff) |
nixos/modules/hardware/video/nvidia: Fix incorrect reference to 'nvidiaSettings'
This patch fixes a bug caused by an incorrect reference to 'nvidiaSettings' rather than 'cfg.nvidiaSettings'. The bug caused the system to not build when using the nvidia drivers. Tested on my local machine.
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/hardware/video/nvidia.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix index cf87ca5377dd5..936bac50e4bbc 100644 --- a/nixos/modules/hardware/video/nvidia.nix +++ b/nixos/modules/hardware/video/nvidia.nix @@ -290,7 +290,7 @@ in hardware.opengl.extraPackages32 = optional offloadCfg.enable nvidia_x11.lib32; environment.systemPackages = [ nvidia_x11.bin ] - ++ optionals nvidiaSettings [ nvidia_x11.settings ] + ++ optionals cfg.nvidiaSettings [ nvidia_x11.settings ] ++ optionals nvidiaPersistencedEnabled [ nvidia_x11.persistenced ]; systemd.packages = optional cfg.powerManagement.enable nvidia_x11.out; |