feat(work-pc): setup Wayland with NVIDIA's GBM backend

This commit is contained in:
Felix Schröter 2021-11-09 09:57:22 +01:00
parent 94936f5d01
commit 594e74dd43
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
4 changed files with 39 additions and 2 deletions

View file

@ -15,4 +15,12 @@
extraPackages = with pkgs; [ libvdpau-va-gl vaapiVdpau ];
extraPackages32 = with pkgs.pkgsi686Linux; [ libvdpau-va-gl vaapiVdpau ];
};
# NVIDIA GBM setup
environment.variables = {
GBM_BACKENDS_PATH = "/run/opengl-driver/lib/gbm";
GBM_BACKEND = "nvidia-drm";
__GLX_VENDOR_LIBRARY_NAME = "nvidia";
OCL_ICD_VENDORS = "/run/opengl-driver/etc/OpenCL/vendors";
};
}