this post was submitted on 27 Sep 2024
12 points (92.9% liked)

Nix / NixOS

2328 readers
2 users here now

Main links

Videos

founded 2 years 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?

top 9 comments
sorted by: hot top controversial new old
[–] rutrum@lm.paradisus.day 1 points 9 months ago (1 children)

Which app menu? I use gnome and after a restart I see my flatpak apps in my app drawer.

[–] gortbrown@lemmy.sdf.org 1 points 9 months ago

It's the XFCE one. Not Whisker Menu, but the default one.

[–] MajorHavoc@programming.dev 1 points 9 months ago* (last edited 9 months ago)

I'm ignoring this problem, myself, right now.

Whenever I run certain flatpak commands, it nags me about a setting I haven't bothered with yet.

I would share that message, but I've been ignoring it.

[–] paperd@lemmy.zip 1 points 9 months ago (1 children)
[–] gortbrown@lemmy.sdf.org 1 points 9 months ago (1 children)

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

[–] paperd@lemmy.zip 1 points 9 months ago (1 children)

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

[–] gortbrown@lemmy.sdf.org 3 points 9 months ago* (last edited 9 months 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!

[–] paperd@lemmy.zip 4 points 9 months 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.

[–] rutrum@lm.paradisus.day 2 points 9 months ago

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.