Revert "traefik: unify TOML generation"

This reverts commit a5e6901702ae08e5bcbe4c7b6574abd559aff6ce.

yj doesn't distinguish floats and ints, which breaks some configs.
This commit is contained in:
Linus Heckemann 2020-06-29 09:34:41 +02:00
parent bcdf475f94
commit 5b8b201e44

View File

@ -20,10 +20,10 @@ let
in valueType;
dynamicConfigFile = if cfg.dynamicConfigFile == null then
pkgs.runCommand "config.toml" {
buildInputs = [ pkgs.yj ];
buildInputs = [ pkgs.remarshal ];
preferLocalBuild = true;
} ''
yj -jt -i \
remarshal -if json -of toml \
< ${
pkgs.writeText "dynamic_config.json"
(builtins.toJSON cfg.dynamicConfigOptions)