nixos-servers/services/ca/templates/ssh/config.tpl
Torjus Håkestad 7db9efc94b
Some checks failed
Run nix flake check / flake-check (push) Has been cancelled
Update ca host config
2024-11-30 14:27:58 +01:00

14 lines
437 B
Smarty

Host *
{{- if or .User.GOOS "none" | eq "windows" }}
{{- if .User.StepBasePath }}
Include "{{ .User.StepBasePath | replace "\\" "/" | trimPrefix "C:" }}/ssh/includes"
{{- else }}
Include "{{ .User.StepPath | replace "\\" "/" | trimPrefix "C:" }}/ssh/includes"
{{- end }}
{{- else }}
{{- if .User.StepBasePath }}
Include "{{.User.StepBasePath}}/ssh/includes"
{{- else }}
Include "{{.User.StepPath}}/ssh/includes"
{{- end }}
{{- end }}