Skip to content

Commit

Permalink
Split FreeBSD packages in three sets: cli, desktop and neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
gwarf committed Oct 20, 2024
1 parent 1be7d45 commit 944eb80
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 29 deletions.
50 changes: 26 additions & 24 deletions home/.chezmoidata/packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,32 @@ packages:
# Xcode
- "497799835"
freebsd:
cli:
- "direnv"
- "extract_url"
- "gohugo"
- "isync"
- "msmtp"
- "mutt"
- "notmuch"
- "py311-khard"
- "py311-httpie"
neovim:
- "cargo"
- "go-yq"
- "hs-ShellCheck"
- "lazygit"
- "neovim"
- "python"
- "py311-black"
- "py311-pyright"
- "rubygem-mdl"
- "ruff"
- "shfmt"
- "stylua"
- "terraform"
- "texlab"
- "tflint"
desktop:
- "chromium"
- "drm-kmod"
Expand Down Expand Up @@ -175,54 +201,30 @@ packages:
minimal:
- "bash"
- "bat"
- "cargo"
- "cbsd"
- "cheat"
- "direnv"
- "doggo"
- "duf"
- "dust"
- "en-freebsd-doc"
- "extract_url"
- "fd-find"
- "fish"
- "fzf"
- "git"
- "git-delta"
- "gohugo"
- "go-yq"
- "gping"
- "hs-ShellCheck"
- "isync"
- "jq"
- "lazygit"
- "lsd"
- "msmtp"
- "mutt"
- "neovim"
- "notmuch"
- "portlint"
- "portshaker"
- "poudriere"
- "procs"
- "py311-black"
- "py311-glances"
- "py311-httpie"
- "py311-khard"
- "py311-pyright"
- "python"
- "ripgrep"
- "ripgrep-all"
- "rubygem-mdl"
- "ruff"
- "sanoid"
- "shfmt"
- "starship"
- "stylua"
- "tealdeer"
- "terraform"
- "texlab"
- "tflint"
- "tmux"
- "tree"
- "vim"
Expand Down
19 changes: 14 additions & 5 deletions home/run_onchange_install-packages.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,26 @@

{{ if eq .chezmoi.os "freebsd" -}}

{{ if eq .chezmoi.hostname "brutal" }}
printf "FreeBSD: install desktop package set"
{{ range .packages.freebsd.desktop -}}
printf "FreeBSD: install minimal package set"
{{ range .packages.freebsd.minimal -}}
doas pkg install -y {{ . | quote }}
{{ end -}}

printf "FreeBSD: install neovim package set"
{{ range .packages.freebsd.neovim -}}
doas pkg install -y {{ . | quote }}
{{ end -}}

printf "FreeBSD: install minimal package set"
{{ range .packages.freebsd.minimal -}}
{{ if eq .chezmoi.hostname "brutal" }}
printf "FreeBSD: install cli package set"
{{ range .packages.freebsd.cli -}}
doas pkg install -y {{ . | quote }}
{{ end -}}
printf "FreeBSD: install desktop package set"
{{ range .packages.freebsd.desktop -}}
doas pkg install -y {{ . | quote }}
{{ end -}}
{{ end -}}

{{ else if eq .chezmoi.os "darwin" -}}

Expand Down

0 comments on commit 944eb80

Please sign in to comment.