stinger: move to networkd #1496

Merged
JakeHillion merged 1 commits from jj/ssxnnsqokrvu into main 2026-12-04 22:19:14 +00:00
@@ -38,15 +38,27 @@
};
# Networking
networking.useNetworkd = true;
custom.networking.host = {
enable = true;
interface = "eth0";
};
# Force-accept RAs on eth0 despite forwarding=1 (set by OTBR for the
# Thread mesh). Without this, eth0 ignores RAs and never SLAACs.
boot.kernel.sysctl."net.ipv6.conf.eth0.accept_ra" = 2;
# The kernel names the NIC enp1s0. Stage 2's .link files are also used in
# initrd, so it is eth0 from boot.
systemd.network.links."10-eth0" = {
matchConfig.PermanentMACAddress = config.custom.network.self.mac;
linkConfig.Name = "eth0";
};
# networkd stops accepting RAs when forwarding is on, which OTBR turns on
# for the Thread mesh. On iot, OTBR's backbone, networkd also installs the
# routes other border routers advertise.
systemd.network.networks = {
"40-eth0".networkConfig.IPv6AcceptRA = true;
"40-iot".networkConfig.IPv6AcceptRA = true;
};
# Use local dnsmasq as caching resolver
services.resolved.enable = false;
networking.nameservers = lib.mkForce [ "127.0.0.1" ];
# Configure dnsmasq as local caching DNS resolver