diff --git a/hosts/layne/network.nix b/hosts/layne/network.nix index d15c672..5b28e8f 100644 --- a/hosts/layne/network.nix +++ b/hosts/layne/network.nix @@ -7,14 +7,32 @@ "2620:fe::9#dns.quad9.net" "149.112.112.112#dns.quad9.net" ]; - - networkmanager = { - enable = true; - dhcp = "dhcpcd"; - dns = "systemd-resolved"; - }; - useDHCP = lib.mkDefault false; + useNetworkd = true; + }; + + systemd.network = { + enable = true; + networks = { + "41-ether" = { + enable = true; + matchConfig = { + Type = "ether"; + }; + networkConfig = { + DHCP = "yes"; + }; + dhcpV4Config = { + UseDomains = true; + }; + ipv6AcceptRAConfig = { + UseDomains = true; + }; + linkConfig = { + RequiredForOnline = "yes"; + }; + }; + }; }; services.resolved = {