network: enable lldp
This commit is contained in:
parent
7e03d4574f
commit
58e9794dff
|
@ -1,7 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
let
|
|
||||||
wireguard_port = 51820;
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
networking = {
|
networking = {
|
||||||
# portunus module does weird things to this, so we force it to some sane values
|
# portunus module does weird things to this, so we force it to some sane values
|
||||||
|
@ -17,7 +14,6 @@ in
|
||||||
nftables.enable = true;
|
nftables.enable = true;
|
||||||
|
|
||||||
firewall = {
|
firewall = {
|
||||||
allowedUDPPorts = [ wireguard_port ];
|
|
||||||
logRefusedConnections = false;
|
logRefusedConnections = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -43,6 +39,8 @@ in
|
||||||
];
|
];
|
||||||
networkConfig = {
|
networkConfig = {
|
||||||
DNS = "141.30.1.1";
|
DNS = "141.30.1.1";
|
||||||
|
LLDP = true;
|
||||||
|
EmitLLDP = "nearest-bridge";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue