test: setting up opencloud and microvms

This commit is contained in:
Nick 2025-12-04 21:45:24 -06:00
parent 4b520563d4
commit 0ed3bb9b64
11 changed files with 171 additions and 33 deletions

View file

@ -7,6 +7,40 @@ let
inherit (flake.config.machines.devices) eris;
in
{
microvm.host.enable = true;
systemd.network = {
enable = true;
netdevs."10-br-vms" = {
netdevConfig = {
Name = "br-vms";
Kind = "bridge";
};
};
networks = {
"20-lan" = {
matchConfig.Name = [
"enp10s0"
"vm-*"
];
networkConfig = {
Bridge = "br-vms";
};
};
"30-br-vms" = {
matchConfig.Name = "br-vms";
networkConfig = {
Address = "192.168.50.245/24";
Gateway = "192.168.50.1";
DNS = [ "192.168.50.1" ];
};
linkConfig.RequiredForOnline = "routable";
};
};
};
networking = {
hostName = eris.name;
networkmanager.enable = true;