blob: 781cfbf75de5a19280165c16cb407e4271270fd0 (
plain) (
blame)
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
|
{{- $defaultMachineRole := default "host" (env "CHEZMOI_MACHINE_ROLE") -}}
{{- $machineRole := promptStringOnce . "machineRole" "Machine role (host, vm, canonical)" $defaultMachineRole -}}
{{- if not (has $machineRole (list "host" "vm" "canonical")) -}}
{{- fail "machineRole must be host, vm, or canonical" -}}
{{- end -}}
sourceDir = {{ .chezmoi.sourceDir | quote }}
[status]
exclude = ["scripts"]
[diff]
exclude = ["scripts"]
[data]
machineRole = {{ $machineRole | quote }}
{{- if eq $machineRole "canonical" }}
workName = {{ promptStringOnce . "workName" "Work Git name" | quote }}
workEmail = {{ promptStringOnce . "workEmail" "Canonical email address" | quote }}
workSigningKey = {{ promptStringOnce . "workSigningKey" "Work GPG signing key fingerprint" | quote }}
{{- end }}
{{- if eq $machineRole "host" }}
# Block device holding the LUKS-encrypted root, without the /dev/ prefix
# (e.g. "nvme0n1p2", "sda2"). Resolved to a UUID at apply time via lsblk,
# used by etc/kernel/cmdline.tmpl.
luksRootPartition = {{ promptStringOnce . "luksRootPartition" "LUKS root partition (e.g. nvme0n1p2)" | quote }}
{{- end }}
|