diff --git a/user/.chezmoi.yaml.tmpl b/user/.chezmoi.yaml.tmpl index e1f56b4..cfe0475 100644 --- a/user/.chezmoi.yaml.tmpl +++ b/user/.chezmoi.yaml.tmpl @@ -3,6 +3,7 @@ {{- $gpg_recipient := promptStringOnce . "gpg.recipient" "GPG Recipient Address" -}} {{- $is_intel_cpu := promptBoolOnce . "cpu.intel" "Is this a Intel CPU?" -}} {{- $is_intel_i915_gpu := promptBoolOnce . "gpu.intel_i915" "Is this a Intel i915 GPU?" -}} +{{- $is_work_env := promptBoolOnce . "work_env" "Install work environment?" -}} data: git: @@ -14,6 +15,7 @@ data: intel: {{ $is_intel_cpu }} gpu: intel_i915: {{ $is_intel_i915_gpu }} + work_env: {{ $is_work_env }} edit: command: nvim diff --git a/user/.chezmoidata/packages.yaml b/user/.chezmoidata/packages.yaml index 1de81e4..f1232c3 100644 --- a/user/.chezmoidata/packages.yaml +++ b/user/.chezmoidata/packages.yaml @@ -105,6 +105,7 @@ packages: - btop - bitwarden - chezmoi + - chromium - fastfetch - figlet - firefox diff --git a/user/.chezmoiscripts/run_onchange_install-packages.sh.tmpl b/user/.chezmoiscripts/run_onchange_install-packages.sh.tmpl index 3ee4863..04be2fc 100644 --- a/user/.chezmoiscripts/run_onchange_install-packages.sh.tmpl +++ b/user/.chezmoiscripts/run_onchange_install-packages.sh.tmpl @@ -30,6 +30,11 @@ declare -a yay_packages yay_packages+=({{ . | quote}}) {{ end -}} {{ end -}} + {{ if eq .work_env true -}} + {{ range .packages.arch.work_env.yay -}} + yay_packages+=({{ . | quote}}) + {{ end -}} + {{ end -}} {{ end -}} install_yay_system_packages "${yay_packages[@]}"