# This xorg.conf.d configuration snippet for Debian configures the X server to
# automatically load the nvidia X driver 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"
        MatchDriver "nvidia-drm"
        Driver "nvidia"
        Option "AllowEmptyInitialConfiguration"
        # Debian specific directories
        ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/nvidia/nvidia"
EndSection
