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
|
||||
pkgs = import <nixpkgs> { };
|
||||
inherit (pkgs.lib) getExe getExe';
|
||||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = with pkgs; [
|
||||
packages = with pkgs; [
|
||||
cargo
|
||||
rustc
|
||||
rustfmt
|
||||
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