aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.chezmoi.toml.tmpl
blob: 3582b7e7e73d2bd47e95f1fe8380a239d394af4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{- $defaultMachineRole := default "host" (env "CHEZMOI_MACHINE_ROLE") -}}
{{- $machineRole := promptStringOnce . "machineRole" "Machine role (host or vm)" $defaultMachineRole -}}
sourceDir = {{ .chezmoi.sourceDir | quote }}

[status]
  exclude = ["scripts"]

[diff]
  exclude = ["scripts"]

[data]
  # Machine role used by templates and run hooks. Valid values: "host", "vm".
  machineRole = {{ $machineRole | quote }}
{{- 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 }}