diff options
author | Someone <else@someonex.net> | 2024-06-02 21:32:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-02 21:32:56 +0000 |
commit | e7139eb386b19ebbbaab598a778704a46c713bcc (patch) | |
tree | 4d0ff34018e0621d02fb58747dab74770abcc730 /nixos/modules/hardware | |
parent | cfe7b424a34114f7140537c2f4c6deb45863d27a (diff) | |
parent | 9b3461e7ae40cfab93ff21e5ca263b97fa05888e (diff) |
Merge pull request #316516 from aidalgol/libxnvctrl-nixos-fix
nixos/nvidia: add missing check for nvidia settings enabled
Diffstat (limited to 'nixos/modules/hardware')
-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 949b1e346269..2091d45d494b 100644 --- a/nixos/modules/hardware/video/nvidia.nix +++ b/nixos/modules/hardware/video/nvidia.nix @@ -285,7 +285,7 @@ in KERNEL=="nvidia_uvm", RUN+="${pkgs.runtimeShell} -c 'mknod -m 666 /dev/nvidia-uvm-tools c $$(grep nvidia-uvm /proc/devices | cut -d \ -f 1) 1'" ''; hardware.opengl = { - extraPackages = [ nvidia_x11.out nvidia_x11.settings.libXNVCtrl ]; + extraPackages = [ nvidia_x11.out ] ++ (lib.optional (builtins.hasAttr "libXNVCtrl" nvidia_x11.settings) nvidia_x11.settings.libXNVCtrl); extraPackages32 = [ nvidia_x11.lib32 ]; }; environment.systemPackages = [ nvidia_x11.bin ]; |