dotfiles/apps/loadkey.nix

14 lines
335 B
Nix
Raw Normal View History

2022-10-03 12:19:29 +00:00
{ pkgs, ... }: {
2022-10-02 20:54:26 +00:00
type = "app";
program = builtins.toString (pkgs.writeShellScript "loadkey" ''
2022-10-03 12:32:09 +00:00
printf "\nEnter the seed phrase for your SSH key...\n"
printf "\nThen press ^D when complete.\n\n"
2024-01-25 02:52:33 +00:00
mkdir -p ~/.ssh/
2022-10-02 20:54:26 +00:00
${pkgs.melt}/bin/melt restore ~/.ssh/id_ed25519
2022-10-03 12:32:09 +00:00
printf "\n\nContinuing activation.\n\n"
2022-10-02 20:54:26 +00:00
'');
}