diff --git a/nixos-edit.script.nix b/nixos-edit.script.nix index 65b46b5..b46dd11 100644 --- a/nixos-edit.script.nix +++ b/nixos-edit.script.nix @@ -24,15 +24,15 @@ pkgs.writeShellScriptBin "nixos-edit" '' echo dir setup done echo "> setting up ssh" echo ssh setup - if ! [ -e ~/.ssh/id_rsa ] ; then + if ! [ -e ~/.ssh/id_* ] ; then ssh-keygen || exit fi echo ssh key created - cat ~/.ssh/id_rsa.pub | xclip -selection clipboard + cat ~/.ssh/id_*.pub | xclip -selection clipboard echo "-> copied to clipboard for later" echo adding it to syncfs echo "-> you will need to input your password" - ssh root@tudbut.de ssh -p 23 localhost bash -c "echo -e '# $(cat /etc/hostname)\n$(cat ~/.ssh/id_rsa.pub)\n' >> .ssh/authorized_keys" || exit 1 + ssh root@tudbut.de ssh -p 23 localhost bash -c "echo -e '# $(cat /etc/hostname)\n$(cat ~/.ssh/id_*.pub)\n' >> .ssh/authorized_keys" || exit 1 echo "> ssh setup done" echo "> setting up git" git config --global user.name "TudbuT"