fixup config to really use the networkd

This commit is contained in:
Christoph Cullmann 2023-04-29 16:30:52 +02:00
parent 624be0a4d0
commit f452ce64c7

View file

@ -91,13 +91,11 @@ in
hardware.enableAllFirmware = true; hardware.enableAllFirmware = true;
# networking via networkd # networking via networkd
networking.useDHCP = false;
systemd.network.enable = true; systemd.network.enable = true;
systemd.network.networks."10-lan" = { systemd.network.networks."10-lan" = {
networkConfig = { networkConfig = {
# start a DHCP Client for IPv4 Addressing/Routing DHCP = "yes";
DHCP = "ipv4";
# accept Router Advertisements for Stateless IPv6 Autoconfiguraton (SLAAC)
IPv6AcceptRA = true;
}; };
# make routing on this interface a dependency for network-online.target # make routing on this interface a dependency for network-online.target
linkConfig.RequiredForOnline = "routable"; linkConfig.RequiredForOnline = "routable";