diff --git a/nix/nixos-module/network.nix b/nix/nixos-module/network.nix index fd41187..6600826 100644 --- a/nix/nixos-module/network.nix +++ b/nix/nixos-module/network.nix @@ -35,6 +35,8 @@ in networkConfig = { IPForward = config.site.hosts.${hostName}.isRouter; IPv6AcceptRA = lib.mkDefault false; + LLDP = true; + EmitLLDP = true; }; addresses = diff --git a/nix/nixos-module/server/network.nix b/nix/nixos-module/server/network.nix index 767bb68..fc64eb2 100644 --- a/nix/nixos-module/server/network.nix +++ b/nix/nixos-module/server/network.nix @@ -73,7 +73,11 @@ in en = { # physical ethernet ports matchConfig.Name = "en*"; - networkConfig.Bond = "bond0"; + networkConfig = { + Bond = "bond0"; + LLDP = true; + EmitLLDP = true; + }; }; bond0 = { DHCP = "no"; @@ -81,6 +85,8 @@ in networkConfig = { VLAN = map (net: "ext-${net}") ctNets; LinkLocalAddressing = "no"; + LLDP = true; + EmitLLDP = true; }; }; } // (builtins.foldl' (result: net: result // { @@ -91,6 +97,8 @@ in # networkd going into operational state. DHCP = lib.mkDefault "no"; LinkLocalAddressing = lib.mkDefault "no"; + LLDP = true; + EmitLLDP = true; }; }; }) {} bridgeNets) // builtins.foldl' (result: net: result // {