-
Notifications
You must be signed in to change notification settings - Fork 0
/
.chezmoi.toml.tmpl
27 lines (22 loc) · 793 Bytes
/
.chezmoi.toml.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{{/* feature flags */}}
{{- $workmode := false -}}{{/* enable work configuration */}}
{{- $wsl := false -}}{{/* enable wsl specific features */}}
{{- "" -}}
{{- $langenv := "home" }}{{/* determine which programming languages (and versions) to sync with asdf */}}
{{- if eq .chezmoi.os "darwin" -}}
{{- if contains "Mac14,5" (output "sysctl" "-n" "hw.model" | trim) -}}
{{- $workmode = true -}}
{{- $langenv = "work" -}}
{{- end -}}
{{- end -}}
{{- if eq .chezmoi.os "linux" -}}
{{- if (.chezmoi.kernel.osrelease | lower | contains "microsoft") -}}
{{- $wsl = true -}}
{{- end -}}
{{- end -}}
[data]
workmode = {{ $workmode }}
langenv = "{{ $langenv }}"
wsl = {{ $wsl }}
[onepassword]
command = "{{ if $wsl }}~/.wslshims/op{{ else }}op{{ end }}"