From 3771c9295b8a0958443927f622b047254b74a1bb Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Sun, 12 Jan 2025 21:42:36 +0000 Subject: some cloud-hypervisor network fuckery, back to qemu --- microvms/authentik/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'microvms/authentik/default.nix') diff --git a/microvms/authentik/default.nix b/microvms/authentik/default.nix index a0b3ac8..badb384 100644 --- a/microvms/authentik/default.nix +++ b/microvms/authentik/default.nix @@ -1,6 +1,6 @@ { config, lib, ... }: let - mac = "c0:ff:ee:00:00:00"; + mac = "02:00:00:00:00:01"; in { imports = [ @@ -18,7 +18,7 @@ in }; microvm = { - hypervisor = "cloud-hypervisor"; + hypervisor = "qemu"; mem = 2 * 1024; vcpu = 2; interfaces = [ @@ -60,7 +60,10 @@ in enable = true; networks."11-host" = { matchConfig.MACAddress = mac; - networkConfig.Address = "10.99.99.10/24"; + networkConfig = { + Address = "10.99.99.10/24"; + DHCP = "no"; + }; routes = [ { Gateway = "10.99.99.1"; -- cgit v1.3.1