install.fairie/home/private_dot_ssh/private_config.tmpl

5 lines
379 B
Cheetah
Raw Normal View History

{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "ssh-config")) -}}
{{ includeTemplate "secrets/ssh-config" | decrypt -}}
{{ else if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "ssh-config-fallback")) -}}
{{ includeTemplate "secrets/ssh-config-fallback" }}
{{- end -}}