ahuston-0 d29b2ecbab
add guest network (now with custom mac address generators!)
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
2024-08-06 20:03:52 -04:00

28 lines
548 B
Nix

{
config,
lib,
pkgs,
src,
...
}:
let
inherit (lib.rad-dev.microvm) genK3SVM;
in
{
# rad-dev.microvm-host.enable = true;
rad-dev.microvm-host.vms =
genK3SVM (src + "/modules/opt/k3s-server.nix") (src + "/modules/opt/k3s-agent.nix")
{
"ph-server-1" = {
address = [ "192.168.69.10/24" ];
gateway = "192.168.69.1";
machine-id = "d694ad1e88b356887bb204ac665263f7";
server = true;
};
# "ph-agent-1" = {
# ipv4 = "192.168.69.30";
# };
};
}