From ee2c718c9728d8aed9a014a57223fbd5ba8df5e9 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Wed, 17 Jul 2024 08:55:39 +0200 Subject: networking: replace dummy interface hack with ifplugd service --- config/networking/bridges.nix | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'config/networking/bridges.nix') diff --git a/config/networking/bridges.nix b/config/networking/bridges.nix index d8cd9e7..e423e03 100644 --- a/config/networking/bridges.nix +++ b/config/networking/bridges.nix @@ -12,21 +12,6 @@ in { sleep 3 ''); } - { - # create a bridge on top of enp3s0 along with a dummy interface - # for kea to work even when enp3s0 is disconnected - # if you change this, you may want to change: - # - the kea configuration in ./services/dhcp.nix - # - the eth0 net configuration ./default.nix - networking = { - bridges.eth0.interfaces = ["enp3s0" "enp3s0-dummy"]; - localCommands = '' - ip link add enp3s0-dummy type dummy - ''; - }; - boot.kernelModules = ["dummy"]; - systemd.services.network-addresses-enp3s0-dummy.enable = false; - } ] ++ (builtins.map (network: let bridge = network.interface; -- cgit v1.2.3