feat(attic): switch to systemd-networkd for networking

- Replace `dhcpcd` with `systemd-networkd` by setting `networking.useDHCP` to `false` and `networking.useNetworkd` to `true`.
- Add a static IPv6 configuration and routes for `enp1s0` in `30-wan`.
- Ensures a more streamlined and customizable network configuration.
This commit is contained in:
Harald Hoyer 2026-03-25 10:19:38 +01:00
parent 179dd93a5b
commit 2ca35ba38d

View file

@ -35,7 +35,14 @@
security.tpm2.abrmd.enable = false; security.tpm2.abrmd.enable = false;
networking.wireless.enable = false; networking.wireless.enable = false;
networking.dhcpcd.IPv6rs = true; networking.useDHCP = false;
networking.useNetworkd = true;
systemd.network.networks."30-wan" = {
matchConfig.Name = "enp1s0";
networkConfig.DHCP = "ipv4";
address = [ "2a01:4f9:c014:619::1/64" ];
routes = [{ Gateway = "fe80::1"; }];
};
networking.firewall.allowedTCPPorts = [ 8080 ]; networking.firewall.allowedTCPPorts = [ 8080 ];
networking.firewall.allowPing = true; networking.firewall.allowPing = true;