1
Fork 0
satellite/scripts/ssh-to-age.sh

7 lines
250 B
Bash
Raw Normal View History

2024-01-31 20:03:00 +01:00
#!/usr/bin/env bash
echo "📁 Creating sops directory"
mkdir -p ~/.config/sops/age
echo "🔑 Converting ssh key to age"
nix-shell -p ssh-to-age --run "ssh-to-age -private-key -i ~/.ssh/id_ed25519 > ~/.config/sops/age/keys.txt"
echo "🚀 All done"