add work environment toggle
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
{{- $gpg_recipient := promptStringOnce . "gpg.recipient" "GPG Recipient Address" -}}
|
{{- $gpg_recipient := promptStringOnce . "gpg.recipient" "GPG Recipient Address" -}}
|
||||||
{{- $is_intel_cpu := promptBoolOnce . "cpu.intel" "Is this a Intel CPU?" -}}
|
{{- $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_intel_i915_gpu := promptBoolOnce . "gpu.intel_i915" "Is this a Intel i915 GPU?" -}}
|
||||||
|
{{- $is_work_env := promptBoolOnce . "work_env" "Install work environment?" -}}
|
||||||
|
|
||||||
data:
|
data:
|
||||||
git:
|
git:
|
||||||
@@ -14,6 +15,7 @@ data:
|
|||||||
intel: {{ $is_intel_cpu }}
|
intel: {{ $is_intel_cpu }}
|
||||||
gpu:
|
gpu:
|
||||||
intel_i915: {{ $is_intel_i915_gpu }}
|
intel_i915: {{ $is_intel_i915_gpu }}
|
||||||
|
work_env: {{ $is_work_env }}
|
||||||
|
|
||||||
edit:
|
edit:
|
||||||
command: nvim
|
command: nvim
|
||||||
|
|||||||
@@ -105,6 +105,7 @@ packages:
|
|||||||
- btop
|
- btop
|
||||||
- bitwarden
|
- bitwarden
|
||||||
- chezmoi
|
- chezmoi
|
||||||
|
- chromium
|
||||||
- fastfetch
|
- fastfetch
|
||||||
- figlet
|
- figlet
|
||||||
- firefox
|
- firefox
|
||||||
|
|||||||
@@ -30,6 +30,11 @@ declare -a yay_packages
|
|||||||
yay_packages+=({{ . | quote}})
|
yay_packages+=({{ . | quote}})
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
{{ if eq .work_env true -}}
|
||||||
|
{{ range .packages.arch.work_env.yay -}}
|
||||||
|
yay_packages+=({{ . | quote}})
|
||||||
|
{{ end -}}
|
||||||
|
{{ end -}}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
|
|
||||||
install_yay_system_packages "${yay_packages[@]}"
|
install_yay_system_packages "${yay_packages[@]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user