diff --git a/infra/common/nixos/networking.nix b/infra/common/nixos/networking.nix index 248af49c..ccc7fd3b 100644 --- a/infra/common/nixos/networking.nix +++ b/infra/common/nixos/networking.nix @@ -18,6 +18,25 @@ in ## REVIEW: Do we actually need that, considering that we have static IPs? useDHCP = mkDefault true; + interfaces = { + eth0 = { + ipv4 = { + addresses = [ + { + inherit (config.fediversityVm.ipv4) address prefixLength; + } + ]; + }; + ipv6 = { + addresses = [ + { + inherit (config.fediversityVm.ipv6) address prefixLength; + } + ]; + }; + }; + }; + defaultGateway = lib.mkIf (config.fediversityVm ? ipv4) { address = config.fediversityVm.ipv4.gateway; interface = "eth0";