From cc5f75a71c400656ef69634c669c4d72f4e64580 Mon Sep 17 00:00:00 2001 From: inkch Date: Thu, 18 Jan 2024 21:29:26 +0900 Subject: [PATCH] change path of the key.txt.age (now, it's in `.assets`) --- .chezmoiscripts/run_before_decrypt-private-key.sh.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.chezmoiscripts/run_before_decrypt-private-key.sh.tmpl b/.chezmoiscripts/run_before_decrypt-private-key.sh.tmpl index dbffe10..9ba1588 100644 --- a/.chezmoiscripts/run_before_decrypt-private-key.sh.tmpl +++ b/.chezmoiscripts/run_before_decrypt-private-key.sh.tmpl @@ -2,6 +2,6 @@ if [ ! -f "${HOME}/.config/chezmoi/key.txt" ]; then mkdir -p "${HOME}/.config/chezmoi" - chezmoi age decrypt --output "${HOME}/.config/chezmoi/key.txt" --passphrase "{{ .chezmoi.sourceDir }}/key.txt.age" + chezmoi age decrypt --output "${HOME}/.config/chezmoi/key.txt" --passphrase "{{ .chezmoi.sourceDir }}/.assets/key.txt.age" chmod 600 "${HOME}/.config/chezmoi/key.txt" fi