# GNOME software center (flatpak support)

**URL:** https://forum.systemcrafters.net/t/gnome-software-center-flatpak-support/1702
**Category:** Guix
**Tags:** guix
**Created:** [July 6, 2025, 11:49pm UTC](https://forum.systemcrafters.net/t/gnome-software-center-flatpak-support/1702 "2025-07-06T23:49:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wegei8](https://avatars.discourse-cdn.com/v4/letter/w/53a042/32.png) [@wegei8](https://forum.systemcrafters.net/u/wegei8)
#### Post date: [July 6, 2025, 11:49pm UTC](https://forum.systemcrafters.net/t/gnome-software-center-flatpak-support/1702/1 "2025-07-06T23:49:10Z")

</div>

Is it possible to install the GNOME Software Center on Guix? Almost all of the apps I use are Flatpaks and normally I install them through Software Center. (There are no Guix packages for these apps.)

I enabled Flatpak on my Guix system by entering these commands: [Flatpakâthe future of application distribution](https://flatpak.org/setup/GNU%20Guix)

```auto
guix install flatpak
flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

```

But it seems like apps installed via `flatpak --user` aren’t integrated into the desktop launcher like apps from `guix install` are.

Is there any configuration I could add to improve the flatpak experience on Guix?

---

<div class="post-metadata">

### Author: ![vvr](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.systemcrafters.net/vvr/32/36_2.png) [@vvr](https://forum.systemcrafters.net/u/vvr)
#### Post date: [July 7, 2025, 11:30am UTC](https://forum.systemcrafters.net/t/gnome-software-center-flatpak-support/1702/2 "2025-07-07T11:30:13Z")

</div>

I think you will be better of with nixos if you want to do that kind of thing, read more here [Flatpak - NixOS Wiki](https://nixos.wiki/wiki/Flatpak). Guix is not so well integrated with flatpak and also I think that is not the intention anyway.

---

<div class="post-metadata">

### Author: ![wegei8](https://avatars.discourse-cdn.com/v4/letter/w/53a042/32.png) [@wegei8](https://forum.systemcrafters.net/u/wegei8)
#### Post date: [July 7, 2025, 8:18pm UTC](https://forum.systemcrafters.net/t/gnome-software-center-flatpak-support/1702/3 "2025-07-07T20:18:48Z")

</div>

Oh, I found out I was missing some configuration.

So first I need to install flatpak, like their docs say.

```auto
guix install flatpak
flatpak --user remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

```

Then to install apps, I need to run this. The `--user` flag is important.

```auto
flatpak install --user flathub com.logseq.Logseq

```

You also need to update `XDG_DATA_HOME` so that it includes Flatpak directories. There is a file Flatpak provides that can do this. The file is located at `~/.guix-profile/etc/profile.d/flatpak.sh`. You need to run the commands in `flatpak.sh`. There’s a bunch of ways of doing this.

I decided to copy the contents of `flatpak.sh` into my `~/.bash_profile`. Apparently, GDM (or GNOME?) reads this file when you’re logging in.

However, I didn’t copy `flatpak.sh` by hand. I used `guix home` of course. Here’s what my `home.scm` file looks like.

```auto
(use-modules (gnu home)
             (gnu home services shells)
             (guix gexp)
             (gnu services))

(home-environment
  (services
    (list
      (service home-bash-service-type
               (home-bash-configuration
                (bash-profile (list (local-file
                                     (string-append (getenv "HOME") "/.guix-profile/etc/profile.d/flatpak.sh")
                                     "flatpak.sh")))))
      )))

```

Alternatively, you can extend `~/.profile`, instead of using `~/.bash_profile`.

```auto
(use-modules (gnu home)
             (gnu home services shells)
             (guix gexp)
             (gnu services))

(home-environment
  (services
    (list
      (simple-service 'flatpak-service
                      home-shell-profile-service-type
                      (list (local-file
                              (string-append (getenv "HOME") "/.guix-profile/etc/profile.d/flatpak.sh")
                              "flatpak.sh"))))))

```

Then I ran `guix home reconfigure home.scm` and rebooted my system just to be sure.

After all of that, the Flatpak apps now appear in GNOME’s app launcher! 🥳

* * *

The only thing left to address is running the GNOME Software Center GUI app… aaand this I’m not sure about. The original [Flatpak](https://flatpak.org/setup/GNU%20Guix) link says:

> Note: graphical installation of Flatpak apps may not be possible with GNU Guix.

So… maybe this isn’t possible now? I’m totally fine with using `install --user` to install apps.

---

<div class="post-metadata">

### Author: ![vvr](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.systemcrafters.net/vvr/32/36_2.png) [@vvr](https://forum.systemcrafters.net/u/vvr)
#### Post date: [July 7, 2025, 8:32pm UTC](https://forum.systemcrafters.net/t/gnome-software-center-flatpak-support/1702/4 "2025-07-07T20:32:26Z")

</div>

well done on solving this 🙂
