-
Notifications
You must be signed in to change notification settings - Fork 0
/
.chezmoi.yaml.tmpl
46 lines (41 loc) · 1.78 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
encryption: age
format: yaml
mode: symlink
{{- if stdinIsATTY }}
progress: true
{{- end }}
add:
templateSymlinks: true
age:
identity: {{ .chezmoi.homeDir }}/.config/chezmoi/key
recipient: age1fzajmt2yy4naas2wtcn3v2vjea3f5rgvmz2elp02zvvmdtcgwcdsqxnd5a
diff:
pager: delta --pager="ov -F --section-delimiter '^(added:|removed:|renamed:|Δ)' --section-header --pattern '•'"
data:
{{ $place := promptStringOnce . "place" "Where does this machine place? (home/office/cloud)" "cloud" | quote }}
place: {{ $place }}
{{ $kind := promptStringOnce . "kind" "What kind of this machine is it? (pc/workstation/tablet/vm/sbc/container/...)" "container" | quote }}
kind: {{ $kind }}
{{- if eq $kind "sbc" "vm" "workstation" }}
code: {{ promptStringOnce . "code" "What is this machine's name?" | quote }}
{{- end }}
{{- if eq $place "office" }}
company: {{ promptStringOnce . "company" "What code of owner company is?" | quote }}
{{- end }}
{{ $guiServer := promptStringOnce . "guiServer" "Which GUI server of this machine is, X for Xorg, W for Wayland, M for Mac, 0 for CLI-only? (X/W/0)" "0" }}
guiServer: {{ $guiServer | quote }}
{{- if eq $guiServer "X" "W" }}
guiDriver: {{ promptStringOnce . "guiDriver" "Which GUI video driver of this machine is, N for Nvidia, I for Intel, A for AMD? (N/I/A)" | quote }}
{{- end }}
{{ $hasSound := promptBoolOnce . "hasSound" "Does this machine has a sound card? (y/n)" false }}
hasSound: {{ $hasSound }}
{{ $hasBluetooth := promptBoolOnce . "hasBluetooth" "Does this machine has a bluetooth device? (y/n)" false }}
hasBluetooth: {{ $hasBluetooth }}
hooks:
diff:
pre:
command: "bash"
args:
- -c
# HACK: run bash again to avoid the error
- bash {{ .chezmoi.homeDir }}/.config/chezmoi/hooks/diff/pre.sh