Merge pull request #31477 from andir/fix-babeld-config

Fix babeld config

Changed files
+5 -3
nixos
modules
services
networking
+5 -3
nixos/modules/services/networking/babeld.nix
···
cfg = config.services.babeld;
+
conditionalBoolToString = value: if (isBool value) then (boolToString value) else (toString value);
+
paramsString = params:
-
concatMapStringsSep "" (name: "${name} ${boolToString (getAttr name params)}")
+
concatMapStringsSep " " (name: "${name} ${conditionalBoolToString (getAttr name params)}")
(attrNames params);
interfaceConfig = name:
···
type = types.nullOr (types.attrsOf types.unspecified);
example =
{
-
wired = true;
+
type = "tunnel";
"split-horizon" = true;
};
};
···
type = types.attrsOf (types.attrsOf types.unspecified);
example =
{ enp0s2 =
-
{ wired = true;
+
{ type = "wired";
"hello-interval" = 5;
"split-horizon" = "auto";
};