diff --git a/dotfiles/.local/share/chezmoi/home/.chezmoi.yaml.tmpl b/dotfiles/.local/share/chezmoi/home/.chezmoi.yaml.tmpl index d50121a9..a74273ef 100644 --- a/dotfiles/.local/share/chezmoi/home/.chezmoi.yaml.tmpl +++ b/dotfiles/.local/share/chezmoi/home/.chezmoi.yaml.tmpl @@ -134,6 +134,7 @@ data: home: "{{ .chezmoi.homeDir }}" homeParentFolder: "{{ if eq .chezmoi.os "linux" }}/home{{ else if eq .chezmoi.os "darwin" }}/Users{{ else }}C:\Users{{ end }}" qubes: {{ ne (stat (joinPath "usr" "bin" "qubes-session")) false }} + softwareGroup: "terminal" type: "{{ $chassisType }}" work: {{ $work }} restricted: {{ $restricted }} diff --git a/dotfiles/.local/share/chezmoi/home/.chezmoidata.yaml b/dotfiles/.local/share/chezmoi/home/.chezmoidata.yaml index 33a1e3d3..15f4fb3d 100644 --- a/dotfiles/.local/share/chezmoi/home/.chezmoidata.yaml +++ b/dotfiles/.local/share/chezmoi/home/.chezmoidata.yaml @@ -17,6 +17,107 @@ colors: color14: #000AAA config: gpg: https://raw.githubusercontent.com/drduh/config/master/gpg.conf +softwareGroups: + terminal: + - aria2 + - asdf + - automake + - autorestic + - bandwhich + - bat + - bitwarden-cli + - cheat + - chezmoi + - choose + - cloudflared + - cmake + - coreutils + - croc + - ctop + - curl + - curlie + - dasel + - deno + - difftastic + - direnv + - duf + - dust + - etcd + - exa + - fd + - ffsend + - fq + - fselect + - fx + - fzf + - gist + - git + - git-delta + - git-lfs + - git-secret + - gitui + - glances + - glow + - go-task/tap/go-task + - gomplate + - googler + - gping + - grex + - gron + - gum + - hexyl + - hey + - htop + - hyperfine + - imagemagick + - jo + - jq + - jq + - litecli + - m-cli + - mcfly + - mkcert + - mycli + - nb + - nmap + - nnn + - node + - openssh + - ots + - pass + - peco + - pnpm + - procs + - pup + - pywhat + - rclone + - restic + - ripgrep + - ripgrep-all + - rm-improved + - rsync + - sd + - shellcheck + - sops + - sqlite + - ssh-vault + - sysbench + - t-rec + - teller + - tmux + - tree + - up + - vault + - vim + - volta + - watchexec + - wget + - whalebrew + - yj + - yq + - zoxide + - zsh + - zx softwarePlugins: vim: plugins: diff --git a/dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_before_90-install-packages.tmpl b/dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_before_90-install-packages.tmpl index 8b137891..324af857 100644 --- a/dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_before_90-install-packages.tmpl +++ b/dotfiles/.local/share/chezmoi/home/.chezmoiscripts/_universal/run_onchange_before_90-install-packages.tmpl @@ -1 +1,10 @@ +#!/usr/bin/env bash +# software: {{ join (get .softwareGroups .host.softwareGroup) " " }} + +if command -v install-software > /dev/null; then + logg 'Installing packages defined in .chezmoidata.yaml under the .softwareGroups key' + install-software {{ join (get .softwareGroups .host.softwareGroup) " " }} +else + logg error '`install-software` is not in the PATH' +fi