From a139d3b4db82508f6f29f72ea0b17e86e4b30c7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=E2=80=9CNiols=E2=80=9D=20Jeannerod?= Date: Mon, 12 May 2025 09:37:00 +0200 Subject: [PATCH] bring back interfaces? --- infra/common/nixos/networking.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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";