Flatpak: Difference between revisions

Malix (talk | contribs)
m enhance: links
Minion (talk | contribs)
feat: add directories to persist with impermanence
 
(One intermediate revision by one other user not shown)
Line 23: Line 23:
{{file|3=export XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share|name=.profile|lang=}}
{{file|3=export XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share|name=.profile|lang=}}
This is also required when installing <code>flatpak</code> on a per-user basis.
This is also required when installing <code>flatpak</code> on a per-user basis.
=== With Impermanence ===
If you're using [[Impermanence]], you'll need to make sure you persist the directories that flatpak will be using
* <code>/var/lib/flatpak</code> (for system configuration, repositories, etc.)
* <code>~/.var/app</code> (for app data)
* <code>~/.local/share/flatpak</code> (for user-specific configuration)
The directories in your home (starting with <code>~</code>) will need to be persisted for every user who will use flatpak


== Usage ==
== Usage ==
Line 30: Line 39:


In the event of a Nix rollback, both modules will reinstall the previously declared Flatpak packages
In the event of a Nix rollback, both modules will reinstall the previously declared Flatpak packages
{{Expand|reason=Exemples are missing|scope=section}}


==== [https://github.com/gmodena/nix-flatpak nix-flatpak] ====
==== [https://github.com/gmodena/nix-flatpak nix-flatpak] ====