dotfiles/apps/loadkey.nix

13 lines
314 B
Nix
Raw Permalink 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"
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
'');
}