Inspired by Automate debian-minimal based template creation please find here my script (package) for the automate creation of Debian minimal based templateVM and appVM creation.
https://codeberg.org/ERROR404/qubes-os-dm
Feel free to use, share, contribute, improve or fork 🤝