this post was submitted on 27 Sep 2024
13 points (93.3% liked)

Nix / NixOS

1781 readers
1 users here now

Main links

Videos

founded 1 year ago
MODERATORS
 

I believe I solved this problem before, but I can't find the solution again. I have some Flatpaks installed on my NixOS system, but they aren't showing up in the app menu. Does anyone know what might be causing this or how to fix it?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 1 month ago (1 children)
[–] [email protected] 1 points 1 month ago (1 children)

Yes, I did restart afterwards, and unfortunately it didn't work.

[–] [email protected] 1 points 1 month ago (1 children)

Does the flatpak stuff show up in your path? Wha'ts yhour nix code for flatpaks looks like?

[–] [email protected] 3 points 1 month ago* (last edited 1 month ago) (2 children)

I honestly just did nix-env -i flatpak then rebooted, so I'm not sure...

Edit: Did it the configuration.nix way to make sure everything was in the path, and it works now. Thanks!

[–] [email protected] 4 points 1 month ago

nix-env should be avoided, it is bad. I wish it were not in the docs so much. If you need a package for a short time, use nix-shell or nix shell.

Glad you got it working tho.

[–] [email protected] 3 points 1 month ago (1 children)

I use a declarative flatpak flake that lets me install flatpaks declaratively. You could use this as well, in case you want to manage the flatpaks in your configuration.

[–] [email protected] 13 points 1 month ago (1 children)

Please share this if you don’t mind.

[–] [email protected] 1 points 1 month ago* (last edited 1 month ago) (1 children)

There are a few out there, but this is the one I use by GermanBread: https://github.com/GermanBread/declarative-flatpak

Edit: this is probably worth making its own post about

[–] [email protected] 11 points 1 month ago* (last edited 1 month ago)

Thanks. I’d certainly like it if you posted it. more Nix = more better. :)