System is using old Mesa driver instead of amdvlk

Hi everyone,

I am pretty new to NixOS and for a couple of days now I try to get Star Citizen running with Lutris on unstable KDE 6 Plasma. The exact same computer was running this and other games with Arch Linux for 2 years without problems and even under NixOS stable with Gnome and Cinnamon I was at least able to run it (although I had problems with the mouse cursor which was not starting in the middle of the screen, after moving the character). Since I changed to unstable KDE 6 Plasma and even after a fresh install I was unable to run the game because Lutris do not use the correct driver.

After starting the via the Star Citizen Launcher I get this message:

mesa.

I already searched through half of the internet and tried to set environment variables like these ones:

VK_DRIVER_FILES=/run/opengl-driver/share/vulkan/icd.d/amd_icd64.json
VK_ICD_FILENAMES=/run/opengl-driver/share/vulkan/icd.d/amd_icd64.json

but always without any success. Maybe someone has any idea what I am doing wrong or where I am missing some configuration.

Informations to my setup:

infocenter

Running glxinfo gives me the old 24.0.6 Mesa driver, but I do not know if this is already wrong because I would think it should be vulkan?

$ glxinfo | grep "OpenGL version"                        
OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.0.6

$ vulkaninfo | grep "apiVersion"
        apiVersion        = 1.3.269 (4206861)

Relevant parts of the configuration.nix which I deploy via a flake:

boot.kernelPackages = pkgs.linuxPackages_latest;

# Using AMD GPU
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "amdgpu" ];

# Enable KDE Plasma 6
services.displayManager.sddm.enable = true;
services.displayManager.defaultSession = "plasma";
services.desktopManager.plasma6.enable = true;

hardware.opengl.extraPackages32 = with pkgs; [ 
  driversi686Linux.amdvlk
];
environment.variables.VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/amd_icd64.json";
environment.variables.VK_DRIVER_FILES = "/run/opengl-driver/share/vulkan/icd.d/amd_icd64.json";

# Enable OpenGL
hardware.opengl = {
  enable = true;
  driSupport = true;
  driSupport32Bit = true;
  extraPackages = with pkgs; [
    vulkan-loader
    vulkan-validation-layers
    vulkan-extension-layer
    amdvlk
  ];
};

Lutris config:






Under Multi GPU is also e.g. this selection possible: