nixos/vms: Add vm-tty utility inside host
This commit is contained in:
parent
f6e04a0d6b
commit
2c3ca62965
@ -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 = {
|
services.udev = {
|
||||||
packages =
|
packages =
|
||||||
optionals
|
optionals
|
||||||
|
Loading…
Reference in New Issue
Block a user