fix: libEGL warning: egl: failed to create dri2 screen

This commit is contained in:
Ryan Yin
2024-09-25 19:47:14 +08:00
parent 9197bc7f0d
commit ae289ab869
5 changed files with 17 additions and 13 deletions
+12
View File
@@ -66,7 +66,19 @@ in {
"/etc/fonts" # for fontconfig
"/etc/machine-id"
"/etc/localtime"
# Fix: libEGL warning: egl: failed to create dri2 screen
"/etc/egl"
"/etc/static/egl"
];
bind.dev = [
# seems required when using nvidia as primary gpu
"/dev/nvidia0"
"/dev/nvidiactl"
"/dev/nvidia-modeset"
"/dev/nvidia-uvm"
];
env = {
XDG_DATA_DIRS = lib.mkForce (lib.makeSearchPath "share" [
iconTheme