nixos-config/hosts/falkenstein-1/modules/networks/default.nix

22 lines
404 B
Nix
Raw Normal View History

2023-04-12 17:21:24 +02:00
{ config, ... }:
{
networking = {
2023-04-12 17:28:41 +02:00
hostName = "falkenstein-1";
2023-04-12 17:21:24 +02:00
useNetworkd = true;
enableIPv6 = true;
};
systemd.network = {
enable = true;
networks."10-loopback" = {
matchConfig.Name = "lo";
linkConfig.RequiredForOnline = false;
};
networks."10-wired" = {
matchConfig.Name = "ens3";
networkConfig = {
DHCP = "yes";
};
};
};
}