1 import ../make-test-python.nix (
4 peer1-ip = "538:f40f:1c51:9bd9:9569:d3f6:d0a1:b2df";
5 peer2-ip = "5b6:6776:fee0:c1f3:db00:b6a8:d013:d38f";
9 meta.maintainers = with lib.maintainers; [ lassulus ];
14 { config, pkgs, ... }:
16 virtualisation.vlans = [ 1 ];
17 networking.interfaces.eth1.ipv4.addresses = [
19 address = "192.168.1.11";
26 addHostedPublicNodes = false;
28 keyFile = ./peer1.key;
30 "quic://192.168.1.12:9651"
31 "tcp://192.168.1.12:9651"
37 { config, pkgs, ... }:
39 virtualisation.vlans = [ 1 ];
40 networking.interfaces.eth1.ipv4.addresses = [
42 address = "192.168.1.12";
49 addHostedPublicNodes = false;
51 keyFile = ./peer2.key;
59 peer1.wait_for_unit("network-online.target")
60 peer2.wait_for_unit("network-online.target")
61 peer1.wait_for_unit("mycelium.service")
62 peer2.wait_for_unit("mycelium.service")
64 peer1.succeed("mycelium peers list | grep 192.168.1.12")
65 peer2.succeed("mycelium peers list | grep 192.168.1.11")
67 peer1.succeed("ping -c5 ${peer2-ip}")
68 peer2.succeed("ping -c5 ${peer1-ip}")