File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ nixpkgs.lib.optionalAttrs (builtins.elem hypervisor self.lib.hypervisorsWithNetw
6
6
name = "vm-${ hypervisor } -iperf" ;
7
7
nodes . vm = {
8
8
imports = [ self . nixosModules . host ] ;
9
+ # TODO: this is a farce of a flake. replace with declarative
10
+ # microvm.
9
11
microvm . vms . "${ hypervisor } -iperf-server" . flake = nixpkgs . legacyPackages . ${ system } . runCommand "${ hypervisor } -iperf-server.flake" {
10
12
passthru . nixosConfigurations . "${ hypervisor } -iperf-server" = nixpkgs . lib . nixosSystem {
11
13
inherit system ;
@@ -21,16 +23,14 @@ nixpkgs.lib.optionalAttrs (builtins.elem hypervisor self.lib.hypervisorsWithNetw
21
23
} ] ;
22
24
} ;
23
25
networking . hostName = "${ hypervisor } -microvm" ;
24
- networking = {
25
- interfaces . eth0 = {
26
- useDHCP = false ;
27
- ipv4 . addresses = [ {
28
- address = "10.0.0.1" ;
29
- prefixLength = 24 ;
30
- } ] ;
26
+ systemd . network = {
27
+ enable = true ;
28
+ networks . "10-eth" = {
29
+ matchConfig . Type = "ether" ;
30
+ address = [ "10.0.0.1/24" ] ;
31
31
} ;
32
- firewall . enable = false ;
33
32
} ;
33
+ networking . firewall . enable = false ;
34
34
services . iperf3 . enable = true ;
35
35
}
36
36
] ;
You can’t perform that action at this time.
0 commit comments