summary refs log tree commit diff
path: root/nixos/modules/hardware
diff options
context:
space:
mode:
authorCole Mickens <cole.mickens@gmail.com>2021-11-04 23:09:38 -0700
committerGitHub <noreply@github.com>2021-11-04 23:09:38 -0700
commitfd6e9350d07360b25fe197ec9a9061e3105837c0 (patch)
tree6761e8f4a9ce26e9791a469f0db9bfe3c6c00643 /nixos/modules/hardware
parent86373221aeecaa9c398f1ce06e721a8ae0f363e8 (diff)
parent59a7fb27a166717d2765411fc04c7deedfe18882 (diff)
downloadnixpkgs-fd6e9350d07360b25fe197ec9a9061e3105837c0.tar
nixpkgs-fd6e9350d07360b25fe197ec9a9061e3105837c0.tar.gz
nixpkgs-fd6e9350d07360b25fe197ec9a9061e3105837c0.tar.bz2
nixpkgs-fd6e9350d07360b25fe197ec9a9061e3105837c0.tar.lz
nixpkgs-fd6e9350d07360b25fe197ec9a9061e3105837c0.tar.xz
nixpkgs-fd6e9350d07360b25fe197ec9a9061e3105837c0.tar.zst
nixpkgs-fd6e9350d07360b25fe197ec9a9061e3105837c0.zip
Merge pull request #139354 from colemickens/nvidia
nvidia: fix egl-wayland loading
Diffstat (limited to 'nixos/modules/hardware')
-rw-r--r--nixos/modules/hardware/video/nvidia.nix4
1 files changed, 4 insertions, 0 deletions
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;