qusal/salt/mirage-builder/install.sls
Ben Grande 0e72ff8716
feat: allow absent dotfiles
Some files had a small impact such as Xft.dpi definition, thus removed.
Files with bigger impact were moved to root directories such as /etc or
were specified with full path such as ~/.local/bin.

In case the dotfiles configuration does extra things, such as verifying
merge commits, it was changed to code or comment when appropriate.

For: https://github.com/ben-grande/dotfiles/pull/1
2025-02-14 15:19:18 +01:00

55 lines
1.2 KiB
Plaintext

{#
SPDX-FileCopyrightText: 2023 - 2025 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
- dev.home-cleanup
- dotfiles.copy-sh
- dotfiles.copy-ssh
- dotfiles.copy-git
- sys-pgp.install-client
- sys-git.install-client
- sys-ssh-agent.install-client
- docker.install
"{{ slsdotpath }}-installed":
pkg.installed:
- require:
- sls: utils.tools.common.update
- install_recommends: False
- skip_suggestions: True
- setopt: "install_weak_deps=False"
- pkgs:
## https://github.com/mirage/qubes-mirage-firewall/blob/main/Dockerfile
- qubes-core-agent-networking
- ca-certificates
- bash-completion
- man-db
- vim
- git
- patch
- unzip
- bzip2
- make
- gcc
- g++
- libc-dev-bin
- opam
- ocaml
"{{ slsdotpath }}-opam-completion-and-hooks":
file.managed:
- name: /etc/profile.d/opam.sh
- source: salt://{{ slsdotpath }}/files/client/profile/opam.sh
- mode: '0755'
- user: root
- group: root
- makedirs: True
{% endif -%}