From 414fa50b309998afca5e7ee03ec238e59d634882 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Fri, 1 Jul 2022 02:30:29 +0100 Subject: [PATCH] nixos/colony: Fix wan dependencies for estuary --- nixos/boxes/colony/vms/default.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/nixos/boxes/colony/vms/default.nix b/nixos/boxes/colony/vms/default.nix index bcb1c43..0561897 100644 --- a/nixos/boxes/colony/vms/default.nix +++ b/nixos/boxes/colony/vms/default.nix @@ -67,10 +67,21 @@ }; "75-vm-wan10g" = { matchConfig.Name = "vm-wan10g"; - linkConfig.RequiredForOnline = "carrier"; + linkConfig.RequiredForOnline = "no"; }; }; }; + + services = { + "vm@estuary" = + let + vtapUnit = "sys-subsystem-net-devices-vm\\x2dwan10g.device"; + in + { + requires = [ vtapUnit ]; + after = [ vtapUnit ]; + }; + }; }; my = { @@ -91,6 +102,7 @@ tapFD = 100; # Real hardware MAC mac = "00:02:c9:56:24:6e"; + waitOnline = false; }; base = { waitOnline = "carrier";