From 0ea6f38867a9085c88d9f8ccc4d41978e06fac2c Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 8 Apr 2021 00:41:27 +0200 Subject: [PATCH] nixos-module/network: make IPForward depend on isRouter --- nix/nixos-module/network.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/nixos-module/network.nix b/nix/nixos-module/network.nix index a2d64dc..cce7499 100644 --- a/nix/nixos-module/network.nix +++ b/nix/nixos-module/network.nix @@ -37,7 +37,7 @@ in matchConfig.Name = ifName; networkConfig.IPForward = - (builtins.length addresses) > 0; + config.site.hosts.${hostName}.isRouter; addresses = let