Why do I get "Permission Denied" after installing flatpak?

I've installed the flatpak on NixOS 23.05 and I get a blank screen and this:

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

<INFO> [09:43:44] Loading #P"/home/b0ef/.local/share/nyxt/history/default.lisp".

Note that the directories

'/var/lib/flatpak/exports/share'
'/home/b0ef/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 1696x24: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 1696x24: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 1696x24: Permission denied
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 1696x1376: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 1696x1376: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 1696x1376: Permission denied
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1
<INFO> [09:43:44] Loading #P"/home/b0ef/.local/share/nyxt/auto-rules.lisp".

Note that the directories

'/var/lib/flatpak/exports/share'
'/home/b0ef/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.

KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 1696x16: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 1696x16: Permission denied
KMS: DRM_IOCTL_MODE_CREATE_DUMB failed: Permission denied
Failed to create GBM buffer of size 1696x16: Permission denied
Failed to create EGL images for DMABufs with file descriptors -1, -1 and -1

[

I installed like this.

flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub engineer.atlas.Nyxt

Which command are you using to start Nyxt?

Can you show me the output of flakpak list?

If you're on NixOS, I'd recommend installing Nyxt via nix instead of the Flatpak. Nonetheless, @jmercouris is able to run the Nyxt Flatpak on NixOS so the issue is probably coming from your side.

To start, I use:

flatpak run engineer.atlas.Nyxt
flatpak list | tee
Nyxt    engineer.atlas.Nyxt     3.9.0   stable  user
Mesa    org.freedesktop.Platform.GL.default     23.2.1  23.08   user
Mesa (Extra)    org.freedesktop.Platform.GL.default     23.2.1  23.08-extra     user
nvidia-535-86-05        org.freedesktop.Platform.GL.nvidia-535-86-05            1.4     user
Intel   org.freedesktop.Platform.VAAPI.Intel            23.08   user
openh264        org.freedesktop.Platform.openh264       2.1.0   2.2.0   user
GNOME Application Platform version 45   org.gnome.Platform              45      user
[b0ef@ximian:~]$

I also don't want to use Nix to install, cause latest version there is .7

It seems related to your Nvidia hardware. What happens if you start via flatpak run --env=WEBKIT_DISABLE_COMPOSITING_MODE=1 engineer.atlas.Nyxt?

I'd strongly recommend requesting an update from the nix maintainers. Email one of the maintainers (NixOS Search).

Yes, that works;). Thanks. I will ask about why it's so far behind in the NixOS forum;)