Joplin-desktop works on laptop, but not desktop: libEGL warning

I have a flake for my dektop and my laptop, with some minor changes for hardware, and my desktop uses plasma while the laptop uses hyprland.

I am using joplin-desktop from unstable because the stable package broke a while back, and shows an error message with unknown flag: --enable-wayland-ime=true.

With the unstable version, it works on my laptop, but on my desktop it shows a transparent window, and when I run it from the terminal it says: libEGL warning: egl: failed to create dri2 screen.

I don t understand how this is possible because it should be the same version on both computers.

[nix-shell:~]$ glxinfo -B | grep -i '\(direct rendering\|opengl\|profile\)'
direct rendering: Yes
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 3070/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 570.153.02
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.6.0 NVIDIA 570.153.02
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 570.153.02
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

nixos config

I downloaded the joplin appimage and ran appimage-run, and that works just fine.