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

Fix babeld config

authored by

Franz Pletz and committed by
GitHub
06d0ba1e aeff3080

+5 -3
+5 -3
nixos/modules/services/networking/babeld.nix
··· 6 6 7 7 cfg = config.services.babeld; 8 8 9 + conditionalBoolToString = value: if (isBool value) then (boolToString value) else (toString value); 10 + 9 11 paramsString = params: 10 - concatMapStringsSep "" (name: "${name} ${boolToString (getAttr name params)}") 12 + concatMapStringsSep " " (name: "${name} ${conditionalBoolToString (getAttr name params)}") 11 13 (attrNames params); 12 14 13 15 interfaceConfig = name: ··· 49 51 type = types.nullOr (types.attrsOf types.unspecified); 50 52 example = 51 53 { 52 - wired = true; 54 + type = "tunnel"; 53 55 "split-horizon" = true; 54 56 }; 55 57 }; ··· 63 65 type = types.attrsOf (types.attrsOf types.unspecified); 64 66 example = 65 67 { enp0s2 = 66 - { wired = true; 68 + { type = "wired"; 67 69 "hello-interval" = 5; 68 70 "split-horizon" = "auto"; 69 71 };