summaryrefslogtreecommitdiff
path: root/common.nix
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2023-06-12 18:19:39 +0200
committerChristoph Cullmann <cullmann@kde.org>2023-06-12 18:19:39 +0200
commit3f0c32302df62e4e86ce6e342f849307a77d937a (patch)
treeede7aa9a792d551b8341817299ed1c7ae7005521 /common.nix
parent6ce1c0045f3f5ead7e66f7cc8877f4ccdcff952a (diff)
better network config
Diffstat (limited to 'common.nix')
-rw-r--r--common.nix14
1 files changed, 0 insertions, 14 deletions
diff --git a/common.nix b/common.nix
index 5cf0b62..ada58dd 100644
--- a/common.nix
+++ b/common.nix
@@ -62,20 +62,6 @@ in
# allow all firmware
hardware.enableAllFirmware = true;
- # use systemd-networkd
- networking.useDHCP = false;
- systemd.network.enable = true;
- systemd.network.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 ];