fleek icon indicating copy to clipboard operation
fleek copied to clipboard

Add support for declarative flatpak

Open daynashaw opened this issue 7 months ago • 1 comments

Is your feature request related to a problem? Please describe. I use the flatpack version of discord and some other picky applications. I have to install these imperatively and there is no living record of their installation other than my memory. This is low hanging fruit to reduce stateful data. This could also have the benefit of simplifying the base image's flatpak installer portal.

Describe the solution you'd like I would like to see the this repo https://github.com/GermanBread/declarative-flatpak integrated into fleek somehow. It has simple modules for controlling the behavior of flatpak including installation and configuration. It is a comprehensive solution to managing them with nix. I would like to see a subsection added to the fleek configuration for flatpack applications and their configuration (overrides...). I would also like to see flatpack management added to the fleek command itself, similar to the way installing regular nix software works. Perhaps fleek flatpak add discord and fleek flatpak override discord foo=barcould be appropriate.

Describe alternatives you've considered I have considered ejecting fleek and configurating home-manager manually, but it would really suck to give up all the convenience and git integration of fleek. I tried looking over the nix files that fleek generates, but I don't believe there is a way for me to add this as a one off, I believe I can only use this tool with fleek by having it integrated into fleek itself.

Additional context There are multiple attempts out there to make flatpak declarative. Also of varying quality. Many of those projects are abandoned. I am requesting this repo in particular because it is actively maintained with commits from today, the interface is simple, and it seems like it would be reliable. It also seems like it doesn't run afoul of the goals of fleek.

daynashaw avatar Nov 16 '23 19:11 daynashaw