Fix using vars
This commit is contained in:
+2
-2
@@ -2,9 +2,9 @@ encryption = "age"
|
||||
|
||||
[age]
|
||||
{{ if eq .chezmoi.osRelease.id "nixos" }}
|
||||
identity = "{{ .vars.nixosAgeKeyPath }}"
|
||||
identity = "{{ .nixosAgeKeyPath }}"
|
||||
{{ else }}
|
||||
identity = "{{ .vars.defaultAgeKeyPath }}"
|
||||
identity = "{{ .defaultAgeKeyPath }}"
|
||||
{{ end }}
|
||||
recipient = "age1tl5hp6v0t38fl8gxuqds40z503mwz885ev22au4jdy5r24aak3zsza23sx"
|
||||
|
||||
|
||||
@@ -7,10 +7,10 @@ set -euo pipefail
|
||||
|
||||
echo "Setting up age key..."
|
||||
|
||||
KEY_FILE="{{ .vars.defaultAgeKeyPath }}"
|
||||
KEY_FILE="{{ .defaultAgeKeyPath }}"
|
||||
KEY_DIR="$(dirname "$KEY_FILE")"
|
||||
|
||||
{{ if .vars.skipCreatingAgeKey }}
|
||||
{{ if .skipCreatingAgeKey }}
|
||||
echo "Expecting age key to be at $KEY_FILE"
|
||||
exit 0
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user