dotfiles/pkgs/tools/misc/loadkey.nix
2025-01-30 14:48:17 -05:00

10 lines
271 B
Nix

{ pkgs, ... }:
pkgs.writeShellScriptBin "loadkey" ''
printf "\nEnter the seed phrase for your SSH key...\n"
printf "\nThen press ^D when complete.\n\n"
mkdir -p ~/.ssh/
${pkgs.melt}/bin/melt restore ~/.ssh/id_ed25519
printf "\n\nContinuing activation.\n\n"
''