feat(test): script for simple connect to vm
This commit is contained in:
parent
f9fd1d8c4e
commit
54ad8a06ac
1 changed files with 7 additions and 1 deletions
|
@ -1,11 +1,17 @@
|
||||||
let
|
let
|
||||||
pkgs = import <nixpkgs> { };
|
pkgs = import <nixpkgs> { };
|
||||||
|
inherit (pkgs.lib) getExe getExe';
|
||||||
in
|
in
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [
|
packages = with pkgs; [
|
||||||
cargo
|
cargo
|
||||||
rustc
|
rustc
|
||||||
rustfmt
|
rustfmt
|
||||||
nixos-shell
|
nixos-shell
|
||||||
|
(pkgs.writeShellScriptBin "connect_to_vm" ''
|
||||||
|
${getExe pkgs.sshpass} -p 'vxlan' \
|
||||||
|
${getExe' pkgs.openssh "ssh"} root@localhost -p 2222 \
|
||||||
|
-o "StrictHostKeyChecking no" -o "UserKnownHostsFile=/dev/null"
|
||||||
|
'')
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue