feat: add development goodies to Qubes Builder

This commit is contained in:
Ben Grande 2024-06-22 10:30:38 +02:00
parent 7df3be4b78
commit 4276358a7e
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56
4 changed files with 46 additions and 5 deletions

View File

@ -50,6 +50,12 @@ sudo qubesctl --skip-dom0 --targets=qubes-builder state.apply qubes-builder.conf
```
<!-- pkg:end:post-install -->
If you plan to write for a long time and analyze logs on the builder qube, it
is recommended to install some development goodies:
```sh
sudo qubesctl --skip-dom0 --targets=tpl-qubes-builder state.apply qubes-builder.install-dev
```
## Access Control
The policy is based on `qubes-builderv2/rpc/50-qubesbuilder.policy`.

View File

@ -0,0 +1,30 @@
{#
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
{% if grains['nodename'] != 'dom0' -%}
include:
- utils.tools.common.update
- dotfiles.copy-vim
- dotfiles.copy-tmux
"{{ slsdotpath }}-installed-dev":
pkg.installed:
- require:
- sls: utils.tools.common.update
- install_recommends: False
- skip_suggestions: True
- pkgs:
- vim-enhanced
- tmux
- xclip
- bash-completion
- man-db
- tree
- ripgrep
- fzf
{% endif -%}

View File

@ -0,0 +1,9 @@
{#
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
base:
'tpl-qubes-builder':
- qubes-builder.install-dev

View File

@ -1,5 +1,5 @@
{#
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
@ -27,10 +27,6 @@ include:
- install_recommends: False
- skip_suggestions: True
- pkgs:
## Goodies
- rpmautospec
- rpmlint
- vim-enhanced
## Minimal template dependencies
- qubes-core-agent-networking
- qubes-core-agent-passwordless-root