portable-binary-cache/binary-cache/network.nix

16 lines
367 B
Nix
Raw Permalink Normal View History

{ lib, ... }: {
systemd.network.enable = true;
networking.useDHCP = lib.mkDefault false;
systemd.network.networks."10-wan" = {
matchConfig.Name = "wan";
linkConfig.RequiredForOnline = true;
DHCP = "yes";
};
systemd.network.links."10-wan" = {
matchConfig.MACAddress = "00:02:c9:9d:ed:64"; # SFP+ port 2.
linkConfig.Name = "wan";
};
}