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:
parent
bcdf475f94
commit
5b8b201e44
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user