From be194e42938574846744a29a17f7ca03b113177d Mon Sep 17 00:00:00 2001 From: kalipso Date: Tue, 19 Nov 2024 13:03:47 +0100 Subject: [PATCH] [microvm] rm duplicate option --- machines/durruti/host_config.nix | 39 -------------------------------- 1 file changed, 39 deletions(-) diff --git a/machines/durruti/host_config.nix b/machines/durruti/host_config.nix index 4f77ba8a..418bbeba 100644 --- a/machines/durruti/host_config.nix +++ b/machines/durruti/host_config.nix @@ -19,14 +19,6 @@ in default = ""; description = lib.mdDoc "ip of nix container provided for malo"; }; - - microvm = { - enableHostBridge = mkOption { - default = false; - type = types.bool; - description = lib.mdDoc "Setup bridge device for microvms."; - }; - }; }; }; @@ -52,36 +44,5 @@ in enableACME= true; locations."/".proxyPass = "http://${cfg.host_ip}:80"; }; - - systemd.network = mkIf cfg.microvm.enableHostBridge { - enable = true; - # create a bride device that all the microvms will be connected to - netdevs."10-microvm".netdevConfig = { - Kind = "bridge"; - Name = "microvm"; - }; - - networks."10-microvm" = { - matchConfig.Name = "microvm"; - networkConfig = { - DHCPServer = true; - IPv6SendRA = true; - }; - addresses = [ { - Address = "10.0.0.1/24"; - } { - Address = "fd12:3456:789a::1/64"; - } ]; - ipv6Prefixes = [ { - Prefix = "fd12:3456:789a::/64"; - } ]; - }; - - # connect the vms to the bridge - networks."11-microvm" = { - matchConfig.Name = "vm-*"; - networkConfig.Bridge = "microvm"; - }; - }; }; }