File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ nixpkgs.lib.nixosSystem {
98
98
matchConfig . Name = "virbr0" ;
99
99
100
100
addresses = [ {
101
- addressConfig . Address = "10.0.0.1/24" ;
101
+ Address = "10.0.0.1/24" ;
102
102
} {
103
- addressConfig . Address = "fd12:3456:789a::1/64" ;
103
+ Address = "fd12:3456:789a::1/64" ;
104
104
} ] ;
105
105
# Hand out IP addresses to MicroVMs.
106
106
# Use `networkctl status virbr0` to see leases.
@@ -110,14 +110,12 @@ nixpkgs.lib.nixosSystem {
110
110
} ;
111
111
# Let DHCP assign a statically known address to the VMs
112
112
dhcpServerStaticLeases = lib . imap0 ( i : hypervisor : {
113
- dhcpServerStaticLeaseConfig = {
114
- MACAddress = hypervisorMacAddrs . ${ hypervisor } ;
115
- Address = hypervisorIPv4Addrs . ${ hypervisor } ;
116
- } ;
113
+ MACAddress = hypervisorMacAddrs . ${ hypervisor } ;
114
+ Address = hypervisorIPv4Addrs . ${ hypervisor } ;
117
115
} ) hypervisors ;
118
116
# IPv6 SLAAC
119
117
ipv6Prefixes = [ {
120
- ipv6PrefixConfig . Prefix = "fd12:3456:789a::/64" ;
118
+ Prefix = "fd12:3456:789a::/64" ;
121
119
} ] ;
122
120
} ;
123
121
networks . microvm-eth0 = {
You can’t perform that action at this time.
0 commit comments