From 9aece1027ebc01dd26fb1fc9ab451d676e69e52a Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 25 Mar 2024 19:12:55 +0000 Subject: [PATCH] cofractal-ams01: fully migrate VMs --- ops/nixos/cofractal-ams01/default.nix | 2 +- ops/nixos/cofractal-ams01/vm-bridge.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/ops/nixos/cofractal-ams01/default.nix b/ops/nixos/cofractal-ams01/default.nix index 9dc0ec06c7..880596c488 100644 --- a/ops/nixos/cofractal-ams01/default.nix +++ b/ops/nixos/cofractal-ams01/default.nix @@ -66,7 +66,7 @@ in ../lib/deluge.nix ../lib/plex.nix ./vm-bridge.nix - ./vxlan-bridge.nix + #./vxlan-bridge.nix ]; my.plex.customTLS = { diff --git a/ops/nixos/cofractal-ams01/vm-bridge.nix b/ops/nixos/cofractal-ams01/vm-bridge.nix index c0e278b18c..f6dff14892 100644 --- a/ops/nixos/cofractal-ams01/vm-bridge.nix +++ b/ops/nixos/cofractal-ams01/vm-bridge.nix @@ -13,6 +13,16 @@ }; systemd.network.networks."40-br-public" = { matchConfig.Name = "br-public"; + address = [ + "92.118.28.1/24" + "2a09:a441::1/48" + "fe80::f00f/64" + ]; + networkConfig.IPv6SendRA = true; + ipv6Prefixes = [{ ipv6PrefixConfig = { + Prefix = "2a09:a441:0:ffff::/64"; + Assign = true; + }; }]; }; systemd.network.netdevs."40-br-mgmt" = { @@ -23,5 +33,13 @@ }; systemd.network.networks."40-br-mgmt" = { matchConfig.Name = "br-mgmt"; + address = [ + "10.100.0.254/23" + ]; + }; + + services.lukegbgp.config = { + export.v4 = [ "92.118.28.0/24" ]; + export.v6 = [ "2a09:a441::/32" ]; }; }