diff --git a/.chezmoi.yaml.tmpl b/.chezmoi.yaml.tmpl index 4fde260..a100895 100644 --- a/.chezmoi.yaml.tmpl +++ b/.chezmoi.yaml.tmpl @@ -3,15 +3,19 @@ diff: pager: less -r {{- $desktop := promptBool "desktop" false }} +{{- $laptop := and $desktop (promptBool "laptop" false) }} +{{- $emacs := and $desktop (promptBool "emacs" true) }} data: desktop: {{ $desktop }} + laptop: {{ $laptop }} features: -{{- if $desktop }} - ansible: {{ promptBool "ansible" true }} -{{- end }} + ansible: {{ and $desktop (promptBool "ansible" true) }} + clevo: {{ and $laptop (promptBool "clevo keyboard" false) }} + optimus: {{ and $laptop (promptBool "optimus" false) }} + virtualbox: {{ and $desktop (promptBool "virtualbox" false) }} + xsane: {{ and $desktop (promptBool "xsane" false) }} + f5vpn: {{ and $desktop (promptBool "f5vpn" false) }} development: -{{- if $desktop }} -{{- $emacs := promptBool "emacs" true }} {{- /* emacs implies that most development options are true */}} emacs: {{ $emacs }} ruby: {{ or $emacs promptBool "ruby development" true }} @@ -24,4 +28,3 @@ data: {{- /* these aren't implied by emacs */}} matlab: {{ or $emacs promptBool "MATLAB development" true }} github: {{ promptBool "GitHub development" true }} -{{- end }} diff --git a/dot_config/xmonad.yml b/dot_config/xmonad.yml deleted file mode 100644 index 850e71a..0000000 --- a/dot_config/xmonad.yml +++ /dev/null @@ -1,12 +0,0 @@ -loglevel: Debug -features: - optimus: true - vpn: true - bluetooth: true - intel_backlight: true - clevo_backlight: true - wireless: true - virtualbox: true - xsane: true - battery: true - f5vpn: true diff --git a/dot_config/xmonad.yml.tmpl b/dot_config/xmonad.yml.tmpl new file mode 100644 index 0000000..54ef40a --- /dev/null +++ b/dot_config/xmonad.yml.tmpl @@ -0,0 +1,12 @@ +loglevel: Debug +features: + optimus: {{ .features.optimus }} + vpn: true + bluetooth: true + intel_backlight: true + clevo_backlight: {{ .features.clevo }} + wireless: {{ .laptop }} + virtualbox: {{ .features.virtualbox }} + xsane: {{ .features.xsane }} + battery: {{ .laptop }} + f5vpn: {{ .features.f5vpn }}