From a17886e8e74fbb6978cbd341d1199fdc0aee3f9b Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 8 Dec 2021 14:20:03 -0800 Subject: [PATCH] Move from extif0 to intif0 for spark. --- config/hardware/spark.nix | 7 +++---- config/host-config/spark.nix | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config/hardware/spark.nix b/config/hardware/spark.nix index d302722..24cd42c 100644 --- a/config/hardware/spark.nix +++ b/config/hardware/spark.nix @@ -41,7 +41,7 @@ networking = { macvlans = { - extif0 = { + intif0 = { interface = "enp3s0"; mode = "bridge"; }; @@ -52,9 +52,8 @@ useDHCP = false; }; - extif0 = { - # output of: echo spark-extif0|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/' - macAddress = "02:9c:b7:b6:ad:c4"; + intif0 = { + macAddress = pkgs.lib.network.generate-mac-address config.instance.hostname "intif0"; }; }; }; diff --git a/config/host-config/spark.nix b/config/host-config/spark.nix index e52d8a2..02a2d87 100644 --- a/config/host-config/spark.nix +++ b/config/host-config/spark.nix @@ -5,7 +5,7 @@ networking = { interfaces = { - extif0 = { useDHCP = true; }; + intif0.useDHCP = true; }; };