totoro: don't prepend GF_ to grafana extraConfig

This commit is contained in:
Luke Granger-Brown 2020-12-29 21:23:20 +00:00
parent be3ce89fb4
commit 33117f2b45

View file

@ -214,7 +214,7 @@ in {
extraOptions = let
convertName = name: lib.toUpper (builtins.replaceStrings ["." "-"] ["_" "_"] name);
convertOptionSection = sectionName: lib.mapAttrsToList (name: value: { name = "GF_${convertName sectionName}_${convertName name}"; inherit value; });
convertOptionSection = sectionName: lib.mapAttrsToList (name: value: { name = "${convertName sectionName}_${convertName name}"; inherit value; });
convertOptions = opts: builtins.listToAttrs (builtins.concatLists (lib.mapAttrsToList convertOptionSection opts));
in convertOptions {
"auth.proxy" = {