lib/config/options: disable isRouter for servers

This commit is contained in:
Astro 2022-10-22 22:40:48 +02:00
parent 8e3ca3bc7c
commit 9be5565030
1 changed files with 2 additions and 1 deletions

View File

@ -348,7 +348,8 @@ let
# isRouter = Part of the core network?
default =
config.site.hosts.${name}.interfaces ? core &&
config.site.net.core.hosts4 ? ${name};
config.site.net.core.hosts4 ? ${name} &&
config.site.hosts.${name}.role == "container";
description = "Should this host route?";
};
firewall.enable = mkOption {