From 45174545f226966f90afca77005104ad4e5228f1 Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 2 Jun 2021 20:02:31 +0200 Subject: [PATCH] nixos-module/container/bird: disable radvd in c3d2-gw{1,2} --- nix/nixos-module/container/bird.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nix/nixos-module/container/bird.nix b/nix/nixos-module/container/bird.nix index 3708b9e..2fcf429 100644 --- a/nix/nixos-module/container/bird.nix +++ b/nix/nixos-module/container/bird.nix @@ -11,8 +11,10 @@ let # Configuring a gateway? If so, this is the associated net. gatewayNet = let - m = builtins.match "(.+)-gw.*" hostName; - in if m == [ "cls" ] + m = builtins.match "(.+)-gw" hostName; + in if hostName == "c3d2-gw3" + then "c3d2" + else if m == [ "cls" ] then "cluster" else if m == null then null