Skip to content

Commit

Permalink
feat: add development goodies to Qubes Builder
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-grande committed Jun 22, 2024
1 parent 7df3be4 commit 4276358
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 5 deletions.
6 changes: 6 additions & 0 deletions salt/qubes-builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
30 changes: 30 additions & 0 deletions salt/qubes-builder/install-dev.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{#
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <[email protected]>

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 -%}
9 changes: 9 additions & 0 deletions salt/qubes-builder/install-dev.top
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{#
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}

base:
'tpl-qubes-builder':
- qubes-builder.install-dev
6 changes: 1 addition & 5 deletions salt/qubes-builder/install.sls
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{#
SPDX-FileCopyrightText: 2023 - 2024 Benjamin Grande M. S. <[email protected]>
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <[email protected]>

SPDX-License-Identifier: AGPL-3.0-or-later
#}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4276358

Please sign in to comment.