From c2f25844da6fa44c3901eed8a24ac3010aa56841 Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Wed, 20 Dec 2023 17:17:05 +0100 Subject: [PATCH] feat: provide development environment for dom0 --- salt/dom0/README.md | 5 +++++ salt/dom0/install-dev.sls | 26 ++++++++++++++++++++++++++ salt/dom0/install-dev.top | 10 ++++++++++ salt/dom0/install.sls | 9 --------- 4 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 salt/dom0/install-dev.sls create mode 100644 salt/dom0/install-dev.top diff --git a/salt/dom0/README.md b/salt/dom0/README.md index 9b66b5b..d79bec1 100644 --- a/salt/dom0/README.md +++ b/salt/dom0/README.md @@ -29,6 +29,11 @@ qubesctl state.apply dom0 ``` +If you need to develop in Dom0, install some goodies (bare bones): +```sh +qubesctl state.apply dom0.install-dev +``` + ## Usage You may have noticed the desktop experience in Dom0 has enhanced. You are diff --git a/salt/dom0/install-dev.sls b/salt/dom0/install-dev.sls new file mode 100644 index 0000000..e7f04e4 --- /dev/null +++ b/salt/dom0/install-dev.sls @@ -0,0 +1,26 @@ +{# +SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. + +SPDX-License-Identifier: AGPL-3.0-or-later +#} + +{% if grains['nodename'] == 'dom0' -%} + +"{{ slsdotpath }}-dev-updated": + pkg.uptodate: + - refresh: True + +"{{ slsdotpath }}-dev-installed": + pkg.installed: + - refresh: True + - install_recommends: False + - skip_suggestions: True + - pkgs: + - vim + - tmux + - xclip + - bash-completion + - man-db + - tree + +{% endif -%} diff --git a/salt/dom0/install-dev.top b/salt/dom0/install-dev.top new file mode 100644 index 0000000..9a725e8 --- /dev/null +++ b/salt/dom0/install-dev.top @@ -0,0 +1,10 @@ +{# +SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. + +SPDX-License-Identifier: AGPL-3.0-or-later +#} + +base: + 'dom0': + - match: nodegroup + - dom0.install-dev diff --git a/salt/dom0/install.sls b/salt/dom0/install.sls index 128ba97..60f03fc 100644 --- a/salt/dom0/install.sls +++ b/salt/dom0/install.sls @@ -10,13 +10,4 @@ SPDX-License-Identifier: AGPL-3.0-or-later pkg.uptodate: - refresh: True -"{{ slsdotpath }}-installed": - pkg.installed: - - refresh: True - - install_recommends: False - - skip_suggestions: True - - pkgs: - - vim - - xclip - {% endif -%}