dotfiles/apps/loadkey.nix

16 lines
354 B
Nix
Raw Permalink Normal View History

2024-04-20 13:42:06 +00:00
{ pkgs, ... }:
{
2022-10-02 20:54:26 +00:00
type = "app";
2024-04-20 13:42:06 +00:00
program = builtins.toString (
pkgs.writeShellScript "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"
''
);
2022-10-02 20:54:26 +00:00
}