Flatpak: Difference between revisions
move part to proper section |
m fix headings |
||
Line 32: | Line 32: | ||
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 | ||
==== [https://github.com/gmodena/nix-flatpak nix-flatpak] ==== | |||
A convergent approach to Flatpak management where refs are managed in place | A convergent approach to Flatpak management where refs are managed in place | ||
Line 39: | Line 39: | ||
It supports flakes or [https://github.com/nix-community/home-manager home-manager], but doesn't support non-flakes only | It supports flakes or [https://github.com/nix-community/home-manager home-manager], but doesn't support non-flakes only | ||
==== [https://github.com/in-a-dil-emma/declarative-flatpak declarative-flatpak] ==== | |||
A congruent approach to Flatpak management where changes are designed to be atomic, ensuring that either they succeed or nothing happens. This module uses a temporary installation and then overwrites the current one. | A congruent approach to Flatpak management where changes are designed to be atomic, ensuring that either they succeed or nothing happens. This module uses a temporary installation and then overwrites the current one. | ||
Line 54: | Line 54: | ||
$ flatpak search Flatseal | $ flatpak search Flatseal | ||
$ flatpak install flathub com.github.tchx84.Flatseal | $ flatpak install flathub com.github.tchx84.Flatseal | ||
$ flatpak run com.github.tchx84.Flatseal</syntaxhighlight>To automatically configure Flatpak repositories for all users, this needs to be added to <code>configuration.nix</code>:{{file|3=systemd.services.flatpak-repo = { | $ flatpak run com.github.tchx84.Flatseal</syntaxhighlight> | ||
==== Configure Repositories Globally ==== | |||
To automatically configure Flatpak repositories for all users, this needs to be added to <code>configuration.nix</code>:{{file|3=systemd.services.flatpak-repo = { | |||
wantedBy = [ "multi-user.target" ]; | wantedBy = [ "multi-user.target" ]; | ||
path = [ pkgs.flatpak ]; | path = [ pkgs.flatpak ]; |