summaryrefslogtreecommitdiff
path: root/common.nix
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2023-10-24 21:47:13 +0200
committerChristoph Cullmann <cullmann@kde.org>2023-10-24 21:47:13 +0200
commit6d6f1ee2e898f0b67bedf7c3e55c07fafaa34f9b (patch)
treefeb780d8ec2dd38aa0c2f142748d76d8f34d9bc3 /common.nix
parentd26a580ec8889437050765a517d2bbe4d2e66bcb (diff)
improve network config
Diffstat (limited to 'common.nix')
-rw-r--r--common.nix16
1 files changed, 0 insertions, 16 deletions
diff --git a/common.nix b/common.nix
index 9ea74f1..d0440cc 100644
--- a/common.nix
+++ b/common.nix
@@ -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 ];