diff --git a/nix/nixos-module/network.nix b/nix/nixos-module/network.nix index a431205..3c2f6bd 100644 --- a/nix/nixos-module/network.nix +++ b/nix/nixos-module/network.nix @@ -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;