The goal of this guide is to create a folder that automatically copies files from dom0 to VMs. Why? So when you install a new template VM, you don't have to copy your Bash aliases, etc, across to it. That will all be handled automatically.
I just finished creating this, so there may be bugs. This guide is abbreviated and intended for tech-savvy users for now, but I will be available to answer any questions and will expand on it based on people's feedback.
mkdir -p ~/.config/srv/salt
sudo ln -s /home/user/.config/srv/salt /srv/user_salt
sudo qubesctl top.enable copy-to-pcre
user_salt
directory, make a directory copy-to/pcre/^fedora-41-xfce$
(or whatever VM you want to copy files to)myscript.sh
in /usr/local/bin/
on the VM, put it in copy-to/pcre/^fedora-41-xfce$/usr/local/bin/
For more documentation, see here:
https://github.com/zaz/qubes-salt-examples/tree/dev/fs/srv/user_salt/copy-to/pcre
Please let me know if you run into any issues!