feat(test): script for simple connect to vm

This commit is contained in:
catvayor 2025-02-01 13:23:10 +01:00
parent f9fd1d8c4e
commit 54ad8a06ac
Signed by: lbailly
GPG key ID: CE3E645251AC63F3

View file

@ -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"
'')
];
}