From e000ed1719aa3aea9bc9e5e3185375a2a435c2a2 Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 18 Sep 2022 00:39:25 +0200 Subject: [PATCH] nixos-module/container/bird: add flpk-gw to anon1 config --- nix/nixos-module/container/bird.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/nix/nixos-module/container/bird.nix b/nix/nixos-module/container/bird.nix index 51a8688..0fe94ea 100644 --- a/nix/nixos-module/container/bird.nix +++ b/nix/nixos-module/container/bird.nix @@ -92,7 +92,10 @@ in } ''} - ${lib.optionalString (builtins.match "anon.*" hostName != null) '' + ${lib.optionalString ( + builtins.match "anon.*" hostName != null || + hostName == "flpk-gw" + ) '' # BIRD routing table for Wireguard transport ipv4 table vpn4_table; @@ -211,7 +214,10 @@ in preference = preference + ${toString (100 - n)}; accept; }; - ${lib.optionalString (builtins.match "anon.*" hostName != null) '' + ${lib.optionalString ( + builtins.match "anon.*" hostName != null || + hostName == "flpk-gw" + ) '' table vpn4_table; ''} };