This repository has been archived on 2025-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
vxlan-router/shell.nix

17 lines
401 B
Nix

let
pkgs = import <nixpkgs> { };
inherit (pkgs.lib) getExe getExe';
in
pkgs.mkShell {
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"
'')
];
}