File tree Expand file tree Collapse file tree 4 files changed +18
-6
lines changed
Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -70,14 +70,19 @@ Headless detection - systems that should NOT have GUI packages
7070{{- end -}}
7171{{- end }}
7272
73- {{- /* Work machine vs personal machine */ -}}
74- {{- $work_hosts := list " nerith " -}}
73+ {{- /* Work machine vs personal machine
74+ Priority: marker file is definitive, then fall back to hostname list */ -}}
7575{{- $is_work := false -}}
76- {{- range $work_hosts -}}
77- {{- if eq . $ .chezmoi.hostname -}}
78- {{- $is_work = true -}}
79- {{- break -}}
76+ {{- if stat (joinPath .chezmoi.homeDir " .config/chezmoi-work/.is-work" ) -}}
77+ {{- $is_work = true -}}
78+ {{- else -}}
79+ {{- $work_hosts := list " nerith" -}}
80+ {{- range $work_hosts -}}
81+ {{- if eq . $hostname -}}
82+ {{- $is_work = true -}}
83+ {{- break -}}
8084{{- end -}}
85+ {{- end -}}
8186{{- end -}}
8287
8388{{- /*
Original file line number Diff line number Diff line change 77 path = ~ /.config/git/config.delta
88 # path = ~/.config/git/config.diff-so-fancy
99 path = ~ /.config/git/config.user
10+ path = ~ /.config/git/config.work
1011 path = ~ /.config/git/config.local
1112
1213[init ]
Original file line number Diff line number Diff line change 1+ # Managed by chezmoi — do not edit manually
2+ # Local/work SSH config goes in ~/.ssh/config.d/
3+
4+ Include ~/.ssh/config.d/*
Original file line number Diff line number Diff line change 1+ # Machine-specific SSH config — not managed by chezmoi
2+ # Edit this file directly; chezmoi will not overwrite it.
You can’t perform that action at this time.
0 commit comments