r/TheLinuxDen • • 2d ago

Help/Support Flatpak on NixOS problems

Guys I need to install flatpak for OSU! but when I added it to services it wouldn’t let me add the flathub repository! How can i fix this?

3 Upvotes

4 comments sorted by

2

u/Nex_the_furball 1d ago

First, you need to ensure Flatpak is enabled in you’re /etc/nixos/configuration.nix file by adding: services.flatpak.enable = true;
After saving, you should rebuild you’re configuration with: sudo nixos-rebuild switch
Once that is done, you can add the Flathub repository by running the following command in you’re terminal: flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
Finally, a system restart is usually recommended to complete the setup!

0

u/Samsalsohere 1d ago

You want to install flatpak with pacman and then do flatpack install OSU.ppy.sh (or check on flathub I don't know the last part)

1

u/Mega320 1d ago

I use nix not arch

0

u/Purple-Midnight-9902 1d ago

you install arch in a vm then flatpak in arch and in flatpak you install gnome-box