add work environment toggle
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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[@]}"
|
||||
|
||||
Reference in New Issue
Block a user