Let’s say I have a user-level flatpak or nix package that I don’t want to install globally in a template (because it’s proprietary for example) and I also want to use it in a non-networked qube so I don’t get leaks, for example due to accidental URL clicks in a PDF.
Now, both software and user data are in the same /home/user directory which makes it hard to upgrade software, which needs network while you do, while protecting user data which aside from the usual ~/Documents etc. may also end up in funny places (or some leaks thereof) like even in some other dotdirs in home dir.
What would be the optimal workflow for updating such user-level software without exposing user data to the network?
Have you tried creating a standalone VM, downloading the software you need, then disconnecting from the internet and transferring the files over to it?
If you want to just avoid accidental leaks, then you can enable and allow updates proxy service for this offline qube and update the apps through this proxy the same way as it works for templates:
If you want to avoid any possible leaks, then you can search for a way to update your apps in offline mode: download updates in some disposable qube, move the updates to your offline qube and install them there.
Flatpak supports offline updates:
When you do need to inspect an untrusted URL from one of those PDFs without exposing your local qube or network identity, do you open it in a disposable Whonix or remote browser session?