-
Notifications
You must be signed in to change notification settings - Fork 0
/
.chezmoi.yaml.tmpl
32 lines (28 loc) · 1.23 KB
/
.chezmoi.yaml.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
28
29
30
31
32
{{- $gitusername := promptString "Git username" "theS1LV3R" | quote -}}
{{- $gitemail := promptString "Email" "me@s1lv3r.codes" | quote -}}
{{- $gitgpgsign := promptBool "Enable git gpg signing" false -}}
{{- $machinetype := promptChoice "Type of machine" (list "personal" "work") }}
{{- $slackLaunchMode := promptChoice "Autolaunch slack" (list "on" "background" "off")}}
{{- $gitsignkey := "" -}}
{{- if eq $gitgpgsign true -}}
{{- if eq $machinetype "personal" -}}
{{- $gitsignkey = "85FA2FC2D8035859AE77FF6E636660BB3A5C2F87" -}}
{{- else if eq $machinetype "work" -}}
{{- $gitsignkey = "F3500DFD0DC37A1964FEA7EBD2A4BA423E5ABDB0" -}}
{{- end -}}
{{- end -}}
{{- $hasGui := promptBool "Does the machine have a GUI" false -}}
{{- $ostype := eq .chezmoi.os "linux" | and (.chezmoi.kernel.osrelease | lower | contains "microsoft") | ternary "wsl" .chezmoi.os -}}
{{- $isdebian := stat "/etc/debian_version" | not | not -}}
---
data:
name: {{ $gitusername }}
email: {{ $gitemail }}
gitgpgsign: {{ $gitgpgsign }}
gitsignkey: {{ $gitsignkey }}
codespaces: {{ env "CODESPACES" | not | not }}
tmuxCopyBackendPort: 30594
hasGui: {{ $hasGui }}
ostype: {{ $ostype }}
isdebian: {{ $isdebian }}
slackLaunchMode: {{ $slackLaunchMode }}