Nvidia DRM kernel driver 'nvidia-drm' in use. NVK requires nouveau

Is there a way to completely remove nouveau?
The main problem is all apps try to load /run/opengl-driver/share/vulkan/icd.d/nouveau_icd.x86_64.json instead of /run/opengl-driver/share/vulkan/icd.d/nvidia_icd.x86_64.json
(It’s possible to force-load correct driver with VK_DRIVER_FILES=/run/opengl-driver/share/vulkan/icd.d/nvidia_icd.x86_64.json)

P.S: If you need only wine & lutris just add this to configuration.nix

  environment.variables = rec {
    VK_DRIVER_FILES=/run/opengl-driver/share/vulkan/icd.d/nvidia_icd.x86_64.json;
  };
1 Like

Have you tried boot.blacklistedKernelModules ?

Or adding options nouveau modeset=0 to boot.extraModprobeConfig?

Yes but it didn’t helped. We need a way to completely remove nouveau_icd.x86_64.json. Also, plasma & QT apps trying to load nouveau when they run under wayland even when VK_DRIVER_FILES was set
(Sorry for mistakes, i’m still learning english)