New encyption scheme

This commit is contained in:
Tyler Mayoff 2024-09-30 20:09:37 -04:00
parent 1a83d00b25
commit 530337679f
5 changed files with 24 additions and 5 deletions

View file

@ -0,0 +1,7 @@
#!/bin/sh
if [ ! -f "/home/tyler/.config/chezmoi/key.txt" ]; then
mkdir -p "/home/tyler/.config/chezmoi"
chezmoi age decrypt --output "${HOME}/.config/chezmoi/key.txt" --passphrase "{{ .chezmoi.sourceDir }}/key.txt.age"
chmod 600 "/home/tyler/.config/chezmoi/key.txt"
fi