bring back interfaces?

This commit is contained in:
Nicolas Jeannerod 2025-05-12 09:37:00 +02:00
parent e42f165ca9
commit a139d3b4db
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8

View file

@ -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";