diff options
author | Christoph Cullmann <cullmann@kde.org> | 2023-10-24 21:47:13 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2023-10-24 21:47:13 +0200 |
commit | 6d6f1ee2e898f0b67bedf7c3e55c07fafaa34f9b (patch) | |
tree | feb780d8ec2dd38aa0c2f142748d76d8f34d9bc3 /common.nix | |
parent | d26a580ec8889437050765a517d2bbe4d2e66bcb (diff) |
improve network config
Diffstat (limited to 'common.nix')
-rw-r--r-- | common.nix | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -67,22 +67,6 @@ in # allow all firmware hardware.enableAllFirmware = true; - # use systemd-networkd - networking.useDHCP = false; - systemd.network = { - enable = true; - networks."10-wan" = { - networkConfig = { - # start a DHCP Client for IPv4 Addressing/Routing - DHCP = "ipv4"; - # accept Router Advertisements for Stateless IPv6 Autoconfiguraton (SLAAC) - IPv6AcceptRA = true; - }; - # make routing on this interface a dependency for network-online.target - linkConfig.RequiredForOnline = "routable"; - }; - }; - # ensure firewall is up, allow ssh and http in networking.firewall.enable = true; networking.firewall.allowedTCPPorts = [ 22 ]; |