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