qusal/salt/dev/install.sls

73 lines
1.6 KiB
Plaintext

{#
SPDX-FileCopyrightText: 2023 - 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
- .home-cleanup
- dotfiles.copy-all
- utils.tools.zsh
- sys-pgp.install-client
- sys-git.install-client
- sys-ssh-agent.install-client
"{{ slsdotpath }}-installed":
pkg.installed:
- require:
- sls: utils.tools.common.update
- install_recommends: False
- skip_suggestions: True
- setopt: "install_weak_deps=False"
- pkgs:
## Necessary
- qubes-core-agent-passwordless-root
- ca-certificates
## Usability
- tmux
- xclip
- bash-completion
## Reading documentation
- man-db
- info
- texinfo
## Searching files
- file
- tree
- ripgrep
- fzf
## Lint
- pre-commit
- precious
- reuse
- gitlint
- pylint
- yamllint
- ruby-mdl
- codespell
## Fedora doesn't have: ruby-mdl (markdownlint, mdl)
## Debian doesn't have: salt-lint
{% set pkg = {
'Debian': {
'pkg': ['shellcheck', 'vim-nox', 'fd-find'],
},
'RedHat': {
'pkg': ['ShellCheck', 'vim-enhanced', 'fd-find', 'salt-lint', 'passwd'],
},
}.get(grains.os_family) -%}
"{{ slsdotpath }}-installed-os-specific":
pkg.installed:
- require:
- sls: utils.tools.common.update
- install_recommends: False
- skip_suggestions: True
- setopt: "install_weak_deps=False"
- pkgs: {{ pkg.pkg|sequence|yaml }}
{% endif -%}