diff --git a/home/.chezmoi.yaml.tmpl b/home/.chezmoi.yaml.tmpl index 545c733..fc3a874 100644 --- a/home/.chezmoi.yaml.tmpl +++ b/home/.chezmoi.yaml.tmpl @@ -7,4 +7,4 @@ merge: - "{{"{{"}} .Source {{"}}"}}" - "{{"{{"}} .Target {{"}}"}}" data: - chassisType: {{ (output "hostnamectl" "--json=short" | mustFromJson).Chassis }} + chassisType: {{ if lookPath "hostnamectl" }}{{ (output "hostnamectl" "--json=short" | mustFromJson).Chassis }}{{ else }}unknown{{ end }}