nix-scripts/artiq-fast/wfvm/demo-ssh.nix

14 lines
400 B
Nix
Raw Normal View History

2020-06-15 00:28:31 +08:00
{ pkgs ? import <nixpkgs> {} }:
let
wfvm = (import ./default.nix { inherit pkgs; });
in
wfvm.utils.wfvm-run {
name = "demo-ssh";
image = import ./demo-image.nix { inherit pkgs; };
2020-06-15 20:09:29 +08:00
isolateNetwork = false;
2020-06-15 13:27:35 +08:00
script = ''
${pkgs.sshpass}/bin/sshpass -p1234 -- ${pkgs.openssh}/bin/ssh -p 2022 wfvm@localhost -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null
'';
2020-06-15 00:28:31 +08:00
}