2024-01-18 11:57:35 +09:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if [ ! -f "${HOME}/.config/chezmoi/key.txt" ]; then
|
|
|
|
mkdir -p "${HOME}/.config/chezmoi"
|
2024-01-18 21:29:26 +09:00
|
|
|
chezmoi age decrypt --output "${HOME}/.config/chezmoi/key.txt" --passphrase "{{ .chezmoi.sourceDir }}/.assets/key.txt.age"
|
2024-01-18 11:57:35 +09:00
|
|
|
chmod 600 "${HOME}/.config/chezmoi/key.txt"
|
|
|
|
fi
|