From af573cdc08347b53717b762743cab80f5279c005 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Mon, 23 Sep 2019 12:14:46 -0400 Subject: [PATCH] Skip statically assigned IPs --- nixos/modules/tests/private-storage.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/modules/tests/private-storage.nix b/nixos/modules/tests/private-storage.nix index 09334175..98f9c6fd 100644 --- a/nixos/modules/tests/private-storage.nix +++ b/nixos/modules/tests/private-storage.nix @@ -19,11 +19,11 @@ let let # makeNetwork :: Integer -> AttrSet makeNetwork = n: { + # Just need to disable the firewall so all the traffic flows freely. + # We could do other network configuration here too, if we wanted. + # Initially I thought we might need to statically asssign IPs but we + # can just use the node names, "introducer", etc, instead. networking.firewall.enable = false; - networking.useDHCP = false; - networking.interfaces.eth0.ipv4.addresses = [ - { address = "192.168.0.${toString n}"; prefixLength = 24; } - ]; }; # addresses :: [Integer] addresses = pkgs.lib.range 0 (builtins.length (builtins.attrNames nodes)); -- GitLab