diff --git a/dotfiles/.local/share/chezmoi/home/dot_ssh/create_private_readonly_private_id_rsa.tmpl b/dotfiles/.local/share/chezmoi/home/dot_ssh/create_private_readonly_private_id_rsa.tmpl index 8e0643c8..91a55438 100644 --- a/dotfiles/.local/share/chezmoi/home/dot_ssh/create_private_readonly_private_id_rsa.tmpl +++ b/dotfiles/.local/share/chezmoi/home/dot_ssh/create_private_readonly_private_id_rsa.tmpl @@ -1,10 +1,10 @@ -{{- $bwAuthenticated = eq (fromJson (output "bw" "status")).status "authenticated" }} +{{- $bwAuthenticated := eq (fromJson (output "bw" "status")).status "authenticated" }} {{- if $bwAuthenticated -}} {{- (bitwarden "item" "dev.betelgeuse.ssh.personal.id_rsa.private").notes -}} {{- else -}} -{{- $sshLocation = (joinPath .chezmoi.homeDir ".ssh" "id_rsa") -}} +{{- $sshLocation := (joinPath .chezmoi.homeDir ".ssh" "id_rsa") -}} {{- if not (stat $sshLocation) -}} -{{- $sshKeygen = (output "ssh-keygen" "-b" "4096" "-t" "rsa" "-f" $sshLocation "-q" "-N" }} +{{- $sshKeygen := (output "ssh-keygen" "-b" "4096" "-t" "rsa" "-f" $sshLocation "-q" "-N") }} {{- end -}} {{- include $sshLocation }} {{ end }} diff --git a/dotfiles/.local/share/chezmoi/home/dot_tool_versions.tmpl b/dotfiles/.local/share/chezmoi/home/dot_tool_versions.tmpl index 0c7998cf..ebc18b2e 100644 --- a/dotfiles/.local/share/chezmoi/home/dot_tool_versions.tmpl +++ b/dotfiles/.local/share/chezmoi/home/dot_tool_versions.tmpl @@ -1,23 +1,9 @@ -{{- if .toolchains.go }} golang system -{{- end -}} -{{- if .toolchains.java }} java openjdk-17 -{{- end -}} -{{- if .toolchains.node }} deno system nodejs system -{{- end -}} -{{- if .toolchains.php }} php 8.1.12 -{{- end -}} -{{- if .toolchains.python }} poetry system python system -{{- end -}} -{{- if .toolchains.ruby }} ruby 3.1.1 -{{- end -}} -{{- if .toolchains.rust }} rust system -{{- end -}}