NVIDIA GPU not used by Steam

Thanks for the help. I still think it’s an upstream bug, most likely with steam. Running Quake II RTX gives me a specific point-of-failure. Running VK_LOADER_DEBUG=all nvidia-offload steam-run ./q2rtx (using the native version, not the Proton version) gives the following error in the console:

Picked physical device 0: NVIDIA GeForce RTX 4070 Laptop GPU
Using VK_KHR_ray_query
FP16 support: yes
]INFO | LAYER:      Failed to find vkGetDeviceProcAddr in layer "/nix/store/l0y1galra3xwk7dwkxjdipmzg4zga75k-mesa-24.2.8-drivers/lib/libVkLayer_MESA_device_select.so"
INFO | LAYER:      Inserted device layer "VK_LAYER_NV_optimus" (/nix/store/kw83icx0xvxypsaps3xy0xbvci9a23xz-nvidia-x11-565.77-6.6.82/lib/libGLX_nvidia.so.0)
DRIVER | LAYER:    vkCreateDevice layer callstack setup to:
DRIVER | LAYER:       <Application>
DRIVER | LAYER:         ||
DRIVER | LAYER:       <Loader>
DRIVER | LAYER:         ||
LAYER:                VK_LAYER_NV_optimus
LAYER:                        Type: Implicit
LAYER:                            Disable Env Var:  DISABLE_LAYER_NV_OPTIMUS_1
LAYER:                        Manifest: /run/opengl-driver/share/vulkan/implicit_layer.d/nvidia_layers.json
LAYER:                        Library:  /nix/store/kw83icx0xvxypsaps3xy0xbvci9a23xz-nvidia-x11-565.77-6.6.82/lib/libGLX_nvidia.so.0
LAYER:                  ||
DRIVER | LAYER:       <Device>
DRIVER | LAYER:           Using "NVIDIA GeForce RTX 4070 Laptop GPU" with driver: "/nix/store/kw83icx0xvxypsaps3xy0xbvci9a23xz-nvidia-x11-565.77-6.6.82/lib/libGLX_nvidia.so.0"
validation layer 1 4096: terminator_CreateDevice: Failed in ICD /nix/store/kw83icx0xvxypsaps3xy0xbvci9a23xz-nvidia-x11-565.77-6.6.82/lib/libGLX_nvidia.so.0 vkCreateDevice call
]Vulkan error: terminator_CreateDevice: Failed in ICD /nix/store/kw83icx0xvxypsaps3xy0xbvci9a23xz-nvidia-x11-565.77-6.6.82/lib/libGLX_nvidia.so.0 vkCreateDevice call
--- (null) 1

]ERROR | DRIVER:    terminator_CreateDevice: Failed in ICD /nix/store/kw83icx0xvxypsaps3xy0xbvci9a23xz-nvidia-x11-565.77-6.6.82/lib/libGLX_nvidia.so.0 vkCreateDevice call
validation layer 1 4096: vkCreateDevice:  Failed to create device chain.
]Vulkan error: vkCreateDevice:  Failed to create device chain.
--- (null) 1

]ERROR:             vkCreateDevice:  Failed to create device chain.
Closing console log.
********************
FATAL: Failed to create a Vulkan device.
Error code: VK_ERROR_INITIALIZATION_FAILED
********************

From the generic error messages, I’m almost certain something is wrong upstream.