# This xorg.conf.d configuration snippet is a supplement to
# 10-nvidia.conf that sets module paths for nvidia GLX libraries
# when it detects a device driven by the nvidia-drm kernel driver.
# Please note that this works on Linux kernels version 6.12 or higher
# with CONFIG_DRM enabled, and only if the nvidia-drm.ko kernel module
# for the versions 390 and later of the nvidia driver or the nvidia.ko
# kernel module for the version 340 is loaded before the X server is started.

Section "OutputClass"
        Identifier "NVidia-modules"
        MatchDriver "nvidia-drm"
        Module "glx"
        Module "glxserver_nvidia"
        ModulePath "/usr/lib/nvidia/xorg"
EndSection
