-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.chezmoi.toml.tmpl
More file actions
36 lines (33 loc) · 1.52 KB
/
.chezmoi.toml.tmpl
File metadata and controls
36 lines (33 loc) · 1.52 KB
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
33
34
35
36
{{- $email := promptStringOnce . "email" "User Email Address" -}}
{{- $name := promptStringOnce . "name" "User Name" -}}
{{- $editor := promptStringOnce . "editor" "Default Editor" -}}
{{- $pager := promptStringOnce . "pager" "Default Pager" -}}
{{- $gitMailmap := promptStringOnce . "gitMailmap" "Git Mailmap File" -}}
{{- $gitSigningKey := promptStringOnce . "gitSigningKey" "Git Signing Key" -}}
[data]
{{- if eq .chezmoi.os "linux" }}
# Linux
{{- $lockerChoices := list "light-locker" "gdmflexiserver" "none" }}
{{- $locker := promptChoiceOnce . "locker" "Screen Locker" $lockerChoices }}
{{- if eq .chezmoi.osRelease.id "arch" -}}
{{- $musicDir := promptStringOnce . "musicDir" "Music Directory" }}
musicDir = {{ $musicDir | quote }}
{{- end }}
{{- if eq .chezmoi.osRelease.id "ubuntu" -}}
{{- $redshiftLatitude := promptStringOnce . "redshiftLatitude" "Redshift Latitude" }}
{{- $redshiftLongitude := promptStringOnce . "redshiftLongitude" "Redshift Longitude" }}
{{- $tmuxOverrideShell := promptBoolOnce . "tmuxOverrideShell" "Override Tmux Shell" }}
redshiftLatitude = {{ $redshiftLatitude | quote }}
redshiftLongitude = {{ $redshiftLongitude | quote }}
tmuxOverrideShell = {{ $tmuxOverrideShell }}
{{- end }}
locker = {{ $locker | quote }}
{{- end }}
# User
email = {{ $email | quote }}
name = {{ $name | quote }}
editor = {{ $editor | quote }}
pager = {{ $pager | quote }}
# Git
gitMailmap = {{ $gitMailmap | quote }}
gitSigningKey = {{ $gitSigningKey | quote }}