add work environment toggle

This commit is contained in:
Frank Zechert
2026-08-02 20:37:17 +02:00
parent c72678926f
commit a33a23941e
3 changed files with 8 additions and 0 deletions
+2
View File
@@ -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
+1
View File
@@ -105,6 +105,7 @@ packages:
- btop
- bitwarden
- chezmoi
- chromium
- fastfetch
- figlet
- firefox
@@ -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[@]}"