Flatpak Template Installation (Updated November 2025)
Target: Debian 12/13 - XFCE template
Disclaimer: This guide resolves the problems I encountered installing Flatpak support in my templates while reasonably adhering to current Qubes OS security guidelines. The guide covers installing Flatpak containers in the system workspace (templateVM) and in user space (AppVM, StandaloneVM). This guide aims to be as simple and user-friendly as possible.
Thanks to KitsuneNoBaka and solene for their help.
Note: It is assumed that the user is already familiar with Qubes OS and its security approach (necessary restrictions) when manipulating system components!
Steps to follow:
For Debian XFCE Template
(Assumes Qubes OS configuration - anonymous updates - proxy - sys-Whonix enabled)
Start the template.
Open the Synaptic Package Manager.
Install the Gnome Store and Flatpak support packages:
gnome-software gnome-software-common gnome-software-plugin-flatpak libflatpak0
End of installation
# Flatpak configuration in the system template (immutable) #
Open a system terminal
Enter the following commands:
export all_proxy=http://127.0.0.1:8082/
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
export http_proxy=http://127.0.0.1:8082/
gnome-software
Install your chosen Flatpak apps
Enjoy :)
The template should now be able to install any Flatpak app and be deployed without changes persisting outside the template.
Flatpak configuration in a user space (deployment for persistence in AppVM Qubes)
Repeat the GNOME Store and Flatpak installation steps using the Synaptic package manager.
Close the template.
The rest of the configuration and app installation must be done from an AppVM or StandaloneVM created from the template.
Create an AppVM or StandaloneVM from the flatpak-user template created.
Open a system terminal.
Enter the command:
flatpak remote-add --user --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
gnome-software
Install apps.
Enjoy :)
Manual update of the Flatpak container and runtime
Note: It is recommended to disable the automatic updates option in the GNOME Store for template mode, as changes will not persist in Qubes created from them and will only be a waste of internet bandwidth.
To update manually in all cases, run the command in a terminal:
flatpak upgrade -y
Regards,