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

9 lines
252 B
Bash
Raw Permalink Normal View History

2024-01-31 20:03:00 +01:00
#!/usr/bin/env bash
echo "📁 Creating sops directory"
mkdir -p ~/.config/sops/age
2024-08-27 13:54:32 +02:00
2024-01-31 20:03:00 +01:00
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"
2024-08-27 13:54:32 +02:00
2024-01-31 20:03:00 +01:00
echo "🚀 All done"