diff options
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/create-emacs-qubes.top | 7 | ||||
-rw-r--r-- | emacs/emacs-scripts.sls | 10 | ||||
-rw-r--r-- | emacs/git-doom-install.sls | 6 | ||||
-rw-r--r-- | emacs/qvm-app.sls | 23 | ||||
-rw-r--r-- | emacs/qvm-tmpl.sls | 4 | ||||
-rw-r--r-- | emacs/tmpl-pkgs.sls | 21 |
6 files changed, 71 insertions, 0 deletions
diff --git a/emacs/create-emacs-qubes.top b/emacs/create-emacs-qubes.top new file mode 100644 index 0000000..c8a31cf --- /dev/null +++ b/emacs/create-emacs-qubes.top @@ -0,0 +1,7 @@ +user: + dom0: + - emacs.qvm-app + - emacs.qvm-tmpl + - emacs.emacs-scripts + tmpl-emacs: + - emacs.tmpl-pkgs diff --git a/emacs/emacs-scripts.sls b/emacs/emacs-scripts.sls new file mode 100644 index 0000000..4722aaa --- /dev/null +++ b/emacs/emacs-scripts.sls @@ -0,0 +1,10 @@ +emacs--move-scripts: + file.managed: + - user: root + - group: root + - mode: 777 + - names: + - /usr/bin/fetch-salt-from-emacs: + - source: salt://scripts/fetch-salt-from-emacs.sh + - /usr/bin/push-salt-to-emacs: + - source: salt://scripts/push-salt-to-emacs.sh diff --git a/emacs/git-doom-install.sls b/emacs/git-doom-install.sls new file mode 100644 index 0000000..40d88bd --- /dev/null +++ b/emacs/git-doom-install.sls @@ -0,0 +1,6 @@ +'git clone --depth 1 https://github.com/hlissner/doom-emacs /home/user/.emacs.d': + cmd.run +'/home/user/.emacs.d/bin/doom install --env --config --install --fonts --force': + cmd.run +'/home/user/.emacs.d/bin/doom sync --doomdir ~/.doom.d --emacsdir ~/.emacs.d -u': + cmd.run diff --git a/emacs/qvm-app.sls b/emacs/qvm-app.sls new file mode 100644 index 0000000..ba3b9f9 --- /dev/null +++ b/emacs/qvm-app.sls @@ -0,0 +1,23 @@ +emacs--create-salt-qube: + qvm.vm: + - name: emacs-salt + - present: + - template: tmpl-emacs + - label: purple + - features: + - set: + - menu-items: emacs.desktop + - require: + - qvm: emacs--create-template + +emacs--create-org-qube: + qvm.vm: + - name: emacs-org + - present: + - template: tmpl-emacs + - label: green + - features: + - set: + - menu-items: emacs.desktop + - require: + - qvm: emacs--create-template diff --git a/emacs/qvm-tmpl.sls b/emacs/qvm-tmpl.sls new file mode 100644 index 0000000..5b6772d --- /dev/null +++ b/emacs/qvm-tmpl.sls @@ -0,0 +1,4 @@ +emacs--create-template: + qvm.clone: + - name: tmpl-emacs + - source: fedora-40-minimal diff --git a/emacs/tmpl-pkgs.sls b/emacs/tmpl-pkgs.sls new file mode 100644 index 0000000..739d458 --- /dev/null +++ b/emacs/tmpl-pkgs.sls @@ -0,0 +1,21 @@ +emacs--install-apps: + pkg.installed: + - pkgs: + - qubes-core-agent-passwordless-root + - qubes-mgmt-salt-vm-connector + - qubes-core-agent-networking + - qubes-core-agent-thunar + - polkit + - curl + - git + - clang + - emacs + - ripgrep + - fd-find + - pandoc + - ShellCheck + - cmake + - libtool + - salt-lint + - graphviz + - ledger |