mirror of
https://codeberg.org/tmayoff/.dotfiles.git
synced 2025-12-06 08:48:34 -05:00
New encyption scheme
This commit is contained in:
parent
1a83d00b25
commit
530337679f
5 changed files with 24 additions and 5 deletions
7
run_once_before_decrypt-private-key.sh.tmpl
Normal file
7
run_once_before_decrypt-private-key.sh.tmpl
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue