2023-01-25 21:02:34 -08:00
|
|
|
{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "tailscale")) -}}
|
|
|
|
{{ includeTemplate "secrets/tailscale" | decrypt -}}
|
|
|
|
{{ else if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "tailscale-fallback")) -}}
|
|
|
|
{{ includeTemplate "secrets/tailscale-fallback" }}
|
|
|
|
{{- end -}}
|