From 79082a5e4e7089bd1a1323c1696259f31e22a512 Mon Sep 17 00:00:00 2001 From: kalipso Date: Tue, 17 Dec 2024 16:24:34 +0100 Subject: [PATCH] [microvm] fix use of same macaddr --- machines/configuration.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/machines/configuration.nix b/machines/configuration.nix index bb5f4c74..da5a3c77 100644 --- a/machines/configuration.nix +++ b/machines/configuration.nix @@ -41,7 +41,7 @@ let ]; defaultModules = baseModules; - makeMicroVM = hostName: ipv4Addr: modules: [ + makeMicroVM = hostName: ipv4Addr: macAddr: modules: [ inputs.microvm.nixosModules.microvm { microvm = { @@ -75,7 +75,7 @@ let { type = "tap"; id = "vm-${hostName}"; - mac = "02:00:00:00:00:01"; + mac = "${macAddr}"; } ]; }; @@ -127,7 +127,7 @@ in system = "x86_64-linux"; specialArgs.inputs = inputs; specialArgs.self = self; - modules = makeMicroVM "durruti" "10.0.0.5" [ + modules = makeMicroVM "durruti" "10.0.0.5" "13:12:AC:AB:23:00" [ ./durruti/configuration.nix ]; }; @@ -136,7 +136,7 @@ in system = "x86_64-linux"; specialArgs.inputs = inputs; specialArgs.self = self; - modules = makeMicroVM "vpn" "10.0.0.10" [ + modules = makeMicroVM "vpn" "10.0.0.10" "13:12:AC:AB:23:01" [ self.nixosModules.malobeo ./vpn/configuration.nix ];