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:
parent
179dd93a5b
commit
2ca35ba38d
1 changed files with 8 additions and 1 deletions
|
|
@ -35,7 +35,14 @@
|
|||
security.tpm2.abrmd.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.allowPing = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue