Electron application and open nvidia driver on wayland

I’m using Plasma on Wayland with the open-source Nvidia driver (I have a RTX 3070 and I use the hardware.nvidia.open = true; flag) with the Wayland Backend and I’m having trouble with Electron Applications.

I’m forced to launch Chromium and all Electron applications with the argument --disable-gpu-sandbox otherwise the window is just blank/black/gray (whatever the background of the application is).

I have this issue on the beta and stable driver. Currently I’m stuck adding the flag manually everywhere, is there a workaround or a solution I missed ?

Hi Elysa,

i had the same problem and have solved it by adding this env variable to my config (Wayland - NixOS Wiki)

environment.sessionVariables.NIXOS_OZONE_WL = "1";