@@ -36,39 +36,18 @@ Machine information
3636{{- end -}}
3737
3838{{- /*
39- Interactive hosts are hosts I interact directly with, rather than through other
40- machines.
39+ GUI hosts have a graphical environment (all macOS, specific Linux hosts).
4140*/ -}}
4241
43- {{- $interactive_hosts := list " nexon" -}}
44- {{- $is_interactive := false -}}
42+ {{- $gui_hosts := list " nexon" -}}
43+ {{- $has_gui := false -}}
4544
4645{{- if $is_macos -}}
47- {{- $is_interactive = true -}}
46+ {{- $has_gui = true -}}
4847{{- else -}}
49- {{- range $interactive_hosts -}}
48+ {{- range $gui_hosts -}}
5049{{- if eq . $ .chezmoi.hostname -}}
51- {{- $is_interactive = true -}}
52- {{- break -}}
53- {{- end -}}
54- {{- end -}}
55- {{- end }}
56-
57- {{- /*
58- Headless detection - systems that should NOT have GUI packages
59- */ -}}
60-
61- {{- $headful_hosts := list " nexon" -}}
62- {{- $is_headless := true -}}
63-
64- {{- /* Never headless on macOS */ -}}
65- {{- if $is_macos -}}
66- {{- $is_headless = false -}}
67- {{- else -}}
68- {{- /* Check if hostname is in explicit headful hosts list */ -}}
69- {{- range $headful_hosts -}}
70- {{- if eq . $ .chezmoi.hostname -}}
71- {{- $is_headless = false -}}
50+ {{- $has_gui = true -}}
7251{{- break -}}
7352{{- end -}}
7453{{- end -}}
@@ -110,8 +89,7 @@ Personal information
11089 email = {{ $email | quote }}
11190 fname = {{ $full_name | quote }}
11291 ghuser = {{ $ghuser | quote }}
113- is_interactive = {{ $is_interactive }}
114- is_headless = {{ $is_headless }}
92+ has_gui = {{ $has_gui }}
11593 is_macos = {{ $is_macos }}
11694 is_linux = {{ $is_linux }}
11795 is_work = {{ $is_work }}
0 commit comments