summaryrefslogtreecommitdiff
path: root/email
diff options
context:
space:
mode:
Diffstat (limited to 'email')
-rw-r--r--email/create-email-qubes.top6
-rw-r--r--email/qvm-app.sls27
-rw-r--r--email/qvm-tmpl.sls5
-rw-r--r--email/tmpl-pkgs.sls13
4 files changed, 51 insertions, 0 deletions
diff --git a/email/create-email-qubes.top b/email/create-email-qubes.top
new file mode 100644
index 0000000..18879cb
--- /dev/null
+++ b/email/create-email-qubes.top
@@ -0,0 +1,6 @@
+user:
+ dom0:
+ - email.qvm-app
+ - email.qvm-tmpl
+ tmpl-email:
+ - email.tmpl-pkgs
diff --git a/email/qvm-app.sls b/email/qvm-app.sls
new file mode 100644
index 0000000..a262a39
--- /dev/null
+++ b/email/qvm-app.sls
@@ -0,0 +1,27 @@
+ email--create-work-app-qube:
+ qvm.vm:
+ - name: email-work
+ - present:
+ - template: tmpl-email
+ - label: blue
+ - prefs:
+ - netvm: sys-mullvad
+ - features:
+ - set:
+ - menu-items: thunar.desktop thunderbird.desktop
+ - require:
+ - qvm: email--create-template
+
+ email--create-personal-app-qube:
+ qvm.vm:
+ - name: email-personal
+ - present:
+ - template: tmpl-email
+ - label: yellow
+ - prefs:
+ - netvm: sys-mullvad
+ - features:
+ - set:
+ - menu-items: thunar.desktop thunderbird.desktop
+ - require:
+ - qvm: email--create-template
diff --git a/email/qvm-tmpl.sls b/email/qvm-tmpl.sls
new file mode 100644
index 0000000..2d24c08
--- /dev/null
+++ b/email/qvm-tmpl.sls
@@ -0,0 +1,5 @@
+email--create-template:
+ qvm.clone:
+ - name: tmpl-email
+ - source: debian-12-minimal
+
diff --git a/email/tmpl-pkgs.sls b/email/tmpl-pkgs.sls
new file mode 100644
index 0000000..501810c
--- /dev/null
+++ b/email/tmpl-pkgs.sls
@@ -0,0 +1,13 @@
+email--install-apps:
+ pkg.installed:
+ - pkgs:
+ - qubes-core-agent-passwordless-root
+ - qubes-mgmt-salt-vm-connector
+ - qubes-core-agent-networking
+ - qubes-core-agent-thunar
+ - qubes-gpg-split
+ - qubes-pdf-converter
+ - qubes-img-converter
+ - qubes-menus
+ - thunderbird-qubes
+ - thunderbird