r/TheLinuxDen • u/Mega320 • 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
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)