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

18 lines
401 B
Nix
Raw Normal View History

2025-01-30 13:12:52 +01:00
let
pkgs = import <nixpkgs> { };
inherit (pkgs.lib) getExe getExe';
2025-01-30 13:12:52 +01:00
in
2025-01-29 17:08:31 +01:00
pkgs.mkShell {
packages = with pkgs; [
2025-01-30 13:12:52 +01:00
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"
'')
2025-01-30 13:12:52 +01:00
];
2025-01-29 17:08:31 +01:00
}