- Add input for role for work and personal - Remove unused values in chezmoi data - Expect age.key instead of having the public key in the path
8 lines
290 B
Bash
8 lines
290 B
Bash
#!/usr/bin/env bash
|
|
|
|
if [ ! -f "{{ .chezmoi.homeDir }}/.config/chezmoi/age.key" ]; then
|
|
mkdir -p "{{ .chezmoi.homeDir }}/.config/chezmoi"
|
|
age-keygen --output "{{ .chezmoi.homeDir }}/.config/chezmoi/age.key"
|
|
chmod 400 "{{ .chezmoi.homeDir }}/.config/chezmoi/age.key"
|
|
fi
|