a5b4203496
- /home/.chezmoiscripts/darwin/run_onchange_after_10-configure-macos.sh.tmpl - /home/.chezmoiscripts/darwin/run_onchange_after_20-ensure-zsh-macos.sh.tmpl - /home/.chezmoiscripts/darwin/run_onchange_after_21-set-wallpaper.sh.tmpl - /home/.chezmoiscripts/darwin/run_onchange_before_10-install-darwin-dependencies.sh.tmpl - /home/.chezmoiscripts/darwin/run_onchange_before_20-ensure-user-group.sh.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_10-configure-macos.sh.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_20-ensure-zsh-macos.sh.tmpl - /home/.chezmoiscripts/universal/run_onchange_after_21-set-wallpaper.sh.tmpl - /home/.chezmoiscripts/universal/run_onchange_before_10-install-darwin-dependencies.sh.tmpl - /home/.chezmoiscripts/universal/run_onchange_before_20-ensure-user-group.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_after_11-set-wallpaper.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_19-setup-sys-gui.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_18-configure-sys-usb.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_17-install-mirage-firewall.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_16-update-template-vms.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_15-install-unofficial-templates.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_14-ensure-minimal-vms-passwordless.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_13-install-official-templates.sh.tmpl - /home/.chezmoiscripts/qubes/run_onchange_before_12-update-dom0.sh.tmpl
25 lines
1.1 KiB
Cheetah
25 lines
1.1 KiB
Cheetah
{{- if (ne .host.distro.family "darwin") -}}
|
|
#!/usr/bin/env bash
|
|
# @file macOS Common Dependencies
|
|
# @brief Ensures common system dependencies are installed via Homebrew on macOS
|
|
# @description
|
|
# This script ensures packages that are commonly used by other packages or needed by Install Doctor, are installed
|
|
# via Homebrew. The list of packages is defined in `home/.chezmoitemplates/darwin/Brewfile`.
|
|
|
|
# darwin/Brewfile hash: {{ include (joinPath ".chezmoitemplates" "darwin" "Brewfile") | sha256sum }}
|
|
|
|
{{ includeTemplate "universal/profile-before" }}
|
|
{{ includeTemplate "universal/logg-before" }}
|
|
|
|
if command -v brew > /dev/null; then
|
|
logg 'Installing base dependencies for macOS using `brew bundle`'
|
|
logg info 'Dependencies: age asdf jq node glow go go-task/tap/go-task gnupg gum m-cli progress volta yq m-cli yq zx'
|
|
logg info 'GNU compatibility dependencies: coreutils findutils'
|
|
|
|
brew bundle --verbose --no-lock --file=/dev/stdin <<EOF
|
|
{{ includeTemplate "darwin/Brewfile" . -}}
|
|
EOF
|
|
else
|
|
logg error '`brew` was not found in the PATH'
|
|
fi
|
|
{{ end -}}
|