{{- $hostname := .chezmoi.hostname -}} {{- $os := .chezmoi.os -}} [data] {{- if eq $hostname "maple" }} machine = "server" hasGUI = false pkgManager = "apt" editor = "hx" {{- else if eq $hostname "rufus" }} machine = "laptop" hasGUI = true pkgManager = "pacman" editor = "hx" {{- else if eq $os "darwin" }} machine = "macbook" hasGUI = true pkgManager = "brew" editor = "hx" {{- else }} machine = "unknown" hasGUI = false pkgManager = "apt" editor = "hx" {{- end }}