Skip to content

Commit 5aff25e

Browse files
committed
examples/microvms-host: update networkd config
Fixes Github issue #355
1 parent b053ba3 commit 5aff25e

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

examples/microvms-host.nix

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ nixpkgs.lib.nixosSystem {
9898
matchConfig.Name = "virbr0";
9999

100100
addresses = [ {
101-
addressConfig.Address = "10.0.0.1/24";
101+
Address = "10.0.0.1/24";
102102
} {
103-
addressConfig.Address = "fd12:3456:789a::1/64";
103+
Address = "fd12:3456:789a::1/64";
104104
} ];
105105
# Hand out IP addresses to MicroVMs.
106106
# Use `networkctl status virbr0` to see leases.
@@ -110,14 +110,12 @@ nixpkgs.lib.nixosSystem {
110110
};
111111
# Let DHCP assign a statically known address to the VMs
112112
dhcpServerStaticLeases = lib.imap0 (i: hypervisor: {
113-
dhcpServerStaticLeaseConfig = {
114-
MACAddress = hypervisorMacAddrs.${hypervisor};
115-
Address = hypervisorIPv4Addrs.${hypervisor};
116-
};
113+
MACAddress = hypervisorMacAddrs.${hypervisor};
114+
Address = hypervisorIPv4Addrs.${hypervisor};
117115
}) hypervisors;
118116
# IPv6 SLAAC
119117
ipv6Prefixes = [ {
120-
ipv6PrefixConfig.Prefix = "fd12:3456:789a::/64";
118+
Prefix = "fd12:3456:789a::/64";
121119
} ];
122120
};
123121
networks.microvm-eth0 = {

0 commit comments

Comments
 (0)