diff --git a/main.nix b/main.nix index 0112450..7f58007 100644 --- a/main.nix +++ b/main.nix @@ -55,9 +55,13 @@ in phases = [ "buildPhase" ]; buildPhase = '' + whoami export HOME=`mktemp -d` mkdir $HOME/.ssh cp /opt/hydra_id_rsa $HOME/.ssh/id_rsa + cp /opt/hydra_id_rsa.pub $HOME/.ssh/id_rsa.pub + echo "rpi,192.168.1.188 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMc7waNkP2HjL5Eo94evoxJhC8CbYj4i2n1THe5TPIR3" > $HOME/.ssh/known_hosts + chmod 600 $HOME/.ssh/id_rsa artiq_flash -t kc705 -H rpi sleep 15 # ping: socket: Operation not permitted