diff options
author | Casper <me@skylarcloud.xyz> | 2024-12-23 18:32:03 -0700 |
---|---|---|
committer | Casper <me@skylarcloud.xyz> | 2024-12-23 18:32:03 -0700 |
commit | 3e39ad75fe0cc9884fb928632e23d89289f21cdd (patch) | |
tree | 1eb8e4f312f023f934d10c2bce171c486ead6b3d | |
parent | 0c2a7c15a21d827922b373fbd1ebf514bb4875ce (diff) |
figured out signal!
-rw-r--r-- | signal/create-signal-qubes.top | 6 | ||||
-rw-r--r-- | signal/install-signal-repo.sh | 6 | ||||
-rw-r--r-- | signal/qvm-app.sls | 11 | ||||
-rw-r--r-- | signal/qvm-tmpl.sls | 5 | ||||
-rw-r--r-- | signal/tmpl-pkgs.sls | 25 |
5 files changed, 53 insertions, 0 deletions
diff --git a/signal/create-signal-qubes.top b/signal/create-signal-qubes.top new file mode 100644 index 0000000..f2f40c5 --- /dev/null +++ b/signal/create-signal-qubes.top @@ -0,0 +1,6 @@ +user: + dom0: + - signal.qvm-tmpl + - signal.qvm-app + tmpl-signal: + - signal.tmpl-pkgs diff --git a/signal/install-signal-repo.sh b/signal/install-signal-repo.sh new file mode 100644 index 0000000..cb8f282 --- /dev/null +++ b/signal/install-signal-repo.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env sh + +sudo curl --proxy 127.0.0.1:8082 -s https://updates.signal.org/desktop/apt/keys.asc | gpg --dearmor | sudo tee -a /usr/share/keyrings/signal-desktop-keyring.gpg > /dev/null +echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main' | tee /etc/apt/sources.list.d/signal-xenial.list +sudo apt update +sudo apt install signal-desktop -y diff --git a/signal/qvm-app.sls b/signal/qvm-app.sls new file mode 100644 index 0000000..81168ba --- /dev/null +++ b/signal/qvm-app.sls @@ -0,0 +1,11 @@ +signal--create-app-qube: + qvm.vm: + - name: signal-personal + - present: + - template: tmpl-signal + - label: green + - features: + - set: + - menu-items: + - require: + - qvm: signal--create-template diff --git a/signal/qvm-tmpl.sls b/signal/qvm-tmpl.sls new file mode 100644 index 0000000..564945b --- /dev/null +++ b/signal/qvm-tmpl.sls @@ -0,0 +1,5 @@ +signal--create-template: + qvm.clone: + - name: tmpl-signal + - source: debian-12-minimal + diff --git a/signal/tmpl-pkgs.sls b/signal/tmpl-pkgs.sls new file mode 100644 index 0000000..40f3327 --- /dev/null +++ b/signal/tmpl-pkgs.sls @@ -0,0 +1,25 @@ +signal--install-dependancies: + pkg.installed: + - pkgs: + - qubes-core-agent-passwordless-root + - qubes-mgmt-salt-vm-connector + - qubes-core-agent-networking + - qubes-core-agent-thunar + - qubes-menus + - dunst + - curl + - libatk1.0-0 + - libatk-bridge2.0-0 + - libcups2 + - libgtk-3-0 + +signal--install-repo-script: + file.managed: + - name: /usr/bin/install-signal-repo + - source: salt://signal/install-signal-repo.sh + - user: root + - group: root + - mode: 777 + +'install-signal-repo': + cmd.run |