Flatpak: Difference between revisions
imported>SoGreatAndPowerful fix typo: yo -> to |
imported>Tormeh m Fix typo where `:` was used in place of `=` |
||
Line 12: | Line 12: | ||
To manually add it to path while using a [https://nixos.wiki/wiki/Greetd greetd] login manager and [https://nixos.wiki/wiki/Sway Sway] create a <code>.profile</code> file with an override for your <code>XDG_DATA_DIRS</code> path, e.g.: | To manually add it to path while using a [https://nixos.wiki/wiki/Greetd greetd] login manager and [https://nixos.wiki/wiki/Sway Sway] create a <code>.profile</code> file with an override for your <code>XDG_DATA_DIRS</code> path, e.g.: | ||
{{file|.profile|nix|<nowiki> | {{file|.profile|nix|<nowiki> | ||
export XDG_DATA_DIRS | export XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share | ||
</nowiki>}} | </nowiki>}} | ||
Revision as of 17:32, 29 June 2023
Flatpak is a linux application sandboxing and distribution framework
Usage
Using this configuration, flatpak
will be installed and ready for use:
/etc/nixos/configuration.nix
services.flatpak.enable = true;
After adding this line to your configuration file, flatpak will be installed, however it is not always added to your path directly, e.g. when you are using sway it will be not.
To manually add it to path while using a greetd login manager and Sway create a .profile
file with an override for your XDG_DATA_DIRS
path, e.g.:
.profile
export XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share
To start using flatpaks, particularly for flatpak development:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak update
flatpak search bustle
flatpak install flathub org.freedesktop.Bustle
flatpak run org.freedesktop.Bustle
Issues
If you have issues with cursors or themes in general, take a look at Fonts