install.fairie/home/.chezmoiscripts/universal/run_onchange_after_59-connect-tailscale.tmpl

5 lines
375 B
Cheetah
Raw Normal View History

{{- 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 -}}