diff --git a/nixos/modules/microvm-extras.nix b/nixos/modules/microvm-extras.nix index 27a180a..c50b7df 100644 --- a/nixos/modules/microvm-extras.nix +++ b/nixos/modules/microvm-extras.nix @@ -336,6 +336,10 @@ in } ]; + services.udev.extraRules = '' + ATTR{address}=="02:00:00:00:${intToHex cfg.groupId}:${intToHex cfg.taskId}", NAME="eth0" + ''; + networking.interfaces."eth0" = { ipv4.addresses = [ {