nixos/vms: Add vm-tty utility inside host

This commit is contained in:
Jack O'Sullivan 2022-06-17 01:53:10 +01:00
parent f6e04a0d6b
commit 2c3ca62965

View File

@ -195,6 +195,13 @@ in
}
];
environment.systemPackages = [
(pkgs.writeShellScriptBin "vm-tty" ''
[ $# -eq 1 ] || (echo "usage: $0 <vm>" >&2; exit 1)
exec ${pkgs.minicom}/bin/minicom -D unix#/run/vms/"$1"/tty.sock
'')
];
services.udev = {
packages =
optionals