From 9be556503083fe4f3f9bfd454af6d5f57198c560 Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 22 Oct 2022 22:40:48 +0200 Subject: [PATCH] lib/config/options: disable isRouter for servers --- nix/lib/config/options.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/lib/config/options.nix b/nix/lib/config/options.nix index 1d19c23..a75107c 100644 --- a/nix/lib/config/options.nix +++ b/nix/lib/config/options.nix @@ -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 {