lol

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