feat: provide development environment for dom0

This commit is contained in:
Ben Grande 2023-12-20 17:17:05 +01:00
parent 38d98ecb0d
commit c2f25844da
4 changed files with 41 additions and 9 deletions

View File

@ -29,6 +29,11 @@ qubesctl state.apply dom0
```
<!-- pkg:end:post-install -->
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

26
salt/dom0/install-dev.sls Normal file
View File

@ -0,0 +1,26 @@
{#
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
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 -%}

10
salt/dom0/install-dev.top Normal file
View File

@ -0,0 +1,10 @@
{#
SPDX-FileCopyrightText: 2023 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
base:
'dom0':
- match: nodegroup
- dom0.install-dev

View File

@ -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 -%}