snowfield/profiles/vm-simple-network.nix

15 lines
344 B
Nix
Raw Permalink Normal View History

2024-08-14 22:13:13 +02:00
{ config, ... }:
{
networking.useNetworkd = true;
2024-08-14 22:13:13 +02:00
systemd.network.enable = true;
systemd.network.networks."10-wan" = {
matchConfig.Name = config.machine.meta.defaultInterface;
2024-08-14 22:13:13 +02:00
networkConfig = {
DHCP = "ipv4";
Address = config.machine.meta.ips.public.ipv6;
};
linkConfig.RequiredForOnline = "routable";
};
}