nixos-config/hosts/nuc/modules/networks/default.nix
2023-04-12 15:05:15 +02:00

22 lines
394 B
Nix

{ config, ... }:
{
networking = {
hostName = "nuc";
useNetworkd = true;
};
systemd.network = {
enable = true;
enableIPv6 = true;
networks."10-loopback" = {
matchConfig.Name = "lo";
linkConfig.RequiredForOnline = false;
};
networks."10-wired" = {
matchConfig.Name = "eno1";
networkConfig = {
DHCP = "yes";
};
};
};
}