dotfiles/.chezmoi.yaml.tmpl

50 lines
2.1 KiB
Cheetah
Raw Normal View History

diff:
args: --color
pager: less -r
{{ $desktop := promptBool "desktop" false -}}
{{- $laptop := and $desktop (promptBool "laptop" false) -}}
{{- $emacs := and $desktop (promptBool "emacs" true) -}}
{{- $xdg_config_home := .chezmoi.homeDir | printf "%s/.config" -}}
{{- $xdg_cache_home := .chezmoi.homeDir | printf "%s/.cache" -}}
{{- $xdg_data_home := .chezmoi.homeDir | printf "%s/.local/share" -}}
{{- $xdg_runtime_dir := output "id" "-u" | trim | printf "/run/user/%s" -}}
data:
desktop: {{ $desktop }}
laptop: {{ $laptop }}
features:
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) }}
networkmanager: {{ and $desktop (promptBool "networkmanager" false) }}
2022-07-22 16:47:44 -04:00
vpn: {{ and $desktop (promptBool "vpn" false) }}
seafile: {{ and $desktop (promptBool "seafile" false) }}
2023-04-09 11:09:53 -04:00
activitywatch: {{ and $desktop (promptBool "activitywatch" false) }}
conky_alias: {{ if $desktop -}}{{ (promptString "conky" "none") }}{{ else }}none{{ end }}
rofi_alias: {{ if $desktop -}}{{ (promptString "rofi-alias" "none") }}{{ else }}none{{ end }}
development:
{{- /* emacs implies that most development options are true */}}
emacs: {{ $emacs }}
ruby: {{ or $emacs (promptBool "ruby" true) }}
python: {{ or $emacs (promptBool "python" true) }}
rust: {{ or $emacs (promptBool "rust" true) }}
clojure: {{ or $emacs (promptBool "clojure" true) }}
latex: {{ or $emacs (promptBool "LaTeX" true) }}
r: {{ or $emacs (promptBool "R" true) }}
conda: {{ or $emacs (promptBool "conda" true) }}
{{- /* these aren't implied by emacs */}}
matlab: {{ or $emacs (promptBool "MATLAB" true) }}
github: {{ promptBool "GitHub" true }}
paths:
config: {{ $xdg_config_home }}
cache: {{ $xdg_cache_home }}
data: {{ $xdg_data_home }}
runtime: {{ $xdg_runtime_dir }}
stack: {{ $xdg_data_home }}/stack