From 1a25a39bd3083c09f1117649d35330f019baba08 Mon Sep 17 00:00:00 2001 From: kat Date: Sun, 25 Sep 2022 20:52:45 -0700 Subject: [PATCH] fix(oracle): stub in CI --- hardware/oracle/common.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hardware/oracle/common.nix b/hardware/oracle/common.nix index a1692357..6f13494b 100644 --- a/hardware/oracle/common.nix +++ b/hardware/oracle/common.nix @@ -81,7 +81,8 @@ in }; networks = { - internet = lib.mkIf tf.state.enable { + internet = mkMerge [ + (lib.mkIf tf.state.enable { interfaces = lib.singleton interface; ipv4 = lib.mkOrder 1000 (tf.resources.${config.networking.hostName}.getAttr "public_ip"); ipv6 = let @@ -101,7 +102,11 @@ in else if class == 4 then tf.resources.${config.networking.hostName}.getAttr "public_ip" else throw "${config.networking.hostName}: IP for ${hostname} of ${toString class} is invalid."; - }; + }) + (lib.mkIf (!tf.state.enable) { + interfaces = lib.singleton "whee"; + }) + ]; }; deploy.tf =