nixos-module/network.nix: fix gw4

This commit is contained in:
Astro 2021-03-25 04:07:39 +01:00
parent 58f8441a1e
commit 8a5f17806d
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ in
) (builtins.attrValues netConfig.hosts6);
gateway = with lib;
optional (gw4 != null) netConfig.${gw4} ++
optional (gw4 != null) config.site.net.${ifName}.hosts4.${gw4} ++
optional (gw6 != null) (findGw6 ifName gw6);
}) config.site.hosts.${hostName}.interfaces;