Adding flatpak to custom image

Hello everyone! I’ve been a fan of the project for a while, and I’ve now decided to dive in and play with it. I’m generating a project using this template to create a custom image. This might be a dumb question, but I’m wondering how to add new Flatpaks? The build.sh shows examples of how to add RPM packages, but I’m unsure how to add Flatpaks.

On a somewhat related note, is there a way to run initialization scripts? For example, after the rebase is complete, could I pull a dotfiles repo, automatically set up a tool via a script, or add some environment variables to the .profile file?

Thanks again!

You could add some first run Services that does this. Or you could add these settings to the skel of home so when you add a new User the home directory of this user gets populated correctly.

Check out the bluefin and bazzite sources they have some examples for first run services (afaik).

1 Like

At what point in the flatpaks do you want them to live? In the image? Post-install?

I’ve been thinking about this a lot (because I am also n00b) once I saw https://omakub.org/, which is basically a glorified script runner to reconfigure a bunch of things that are currently left to manual setup in Bluefin. The flatpak CLI is pretty straightforward, so it seems feasible enough

Not sure I understand what you are saying here.
What I’m asking for is where should I list the flatpaks so that they are available when I rebase on my custom image, I guess they should live in the image so that they are tested when the image is built ? I have no idea what I’m talking about :upside_down_face:

Omakub is cool btw

Bluefin/Aurora do it like this in their Github Workflow. Maybe this can be inspirational for your endeavours?

1 Like

I guess I could add some install scripts myself somehow, to be run post-install. But frankly, I’m not in the right state of mind for this—it seems too involved.:upside_down_face:
A was just looking for an easy and cheap solution

Take a look at BlueBuild. It doesn’t get easier than that.

1 Like

Pretty much exactly what I was looking for, thanks.