From 216dd5b740f91f4250e33256e3c11e4e342895ce Mon Sep 17 00:00:00 2001 From: Cole Mickens Date: Thu, 16 Sep 2021 05:00:41 -0700 Subject: nvidia: fix egl-wayland loading --- nixos/modules/hardware/video/nvidia.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nixos/modules/hardware') diff --git a/nixos/modules/hardware/video/nvidia.nix b/nixos/modules/hardware/video/nvidia.nix index 8f6b5c22ea4..917c6d3013e 100644 --- a/nixos/modules/hardware/video/nvidia.nix +++ b/nixos/modules/hardware/video/nvidia.nix @@ -284,6 +284,10 @@ in source = "${nvidia_x11.bin}/share/nvidia/nvidia-application-profiles-rc"; }; + # 'nvidia_x11' installs it's files to /run/opengl-driver/... + environment.etc."egl/egl_external_platform.d".source = + "/run/opengl-driver/share/egl/egl_external_platform.d/"; + hardware.opengl.package = mkIf (!offloadCfg.enable) nvidia_x11.out; hardware.opengl.package32 = mkIf (!offloadCfg.enable) nvidia_x11.lib32; hardware.opengl.extraPackages = optional offloadCfg.enable nvidia_x11.out; -- cgit 1.4.1