nixos-module/container/bird: add flpk-gw to anon1 config

This commit is contained in:
Astro 2022-09-18 00:39:25 +02:00
parent b6ebe0f136
commit e000ed1719
1 changed files with 8 additions and 2 deletions

View File

@ -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;
''}
};