diff --git a/nixos-edit.script.nix b/nixos-edit.script.nix index 23fc252..7993841 100644 --- a/nixos-edit.script.nix +++ b/nixos-edit.script.nix @@ -32,7 +32,7 @@ pkgs.writeShellScriptBin "nixos-edit" '' 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_*.pub)\n' >> .ssh/authorized_keys" || exit 1 + ssh root@tudbut.de "ssh -p 23 localhost '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"