Installed Flatpaks/Nixpkgs do not appear in GNOME app drawer


As you can see in the picture, only the GNOME apps appear. I looked it up and people said that ~/.nix-profile is the directory with the .desktop files, and you need to add it to XDG_DATA_DIRS, but i don’t have a ~/.nix-profile directory…
I can launch the apps from the command line.

NixOS 23.05

  1. Did you install flatpak using services.flatpak.enable NixOS option?
  2. Did you re-log in after installing flatpak? The module updates NIX_PROFILES and XDG_DATA_DIRS environment variable:
    https://github.com/NixOS/nixpkgs/blob/a50cea84be6f4706e563b6785418b85977b79a0c/nixos/modules/services/desktops/flatpak.nix#L39-L42
  3. Do you use some other shell than the default bash? If so, how did you enable it? In the past, we have seen some shells preventing environment variables to be properly initialized.
  1. Yes
  2. I restarted after sudo nixos-rebuild switch
  3. I use bash