totoro: don't prepend GF_ to grafana extraConfig
This commit is contained in:
parent
be3ce89fb4
commit
33117f2b45
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ in {
|
||||||
|
|
||||||
extraOptions = let
|
extraOptions = let
|
||||||
convertName = name: lib.toUpper (builtins.replaceStrings ["." "-"] ["_" "_"] name);
|
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));
|
convertOptions = opts: builtins.listToAttrs (builtins.concatLists (lib.mapAttrsToList convertOptionSection opts));
|
||||||
in convertOptions {
|
in convertOptions {
|
||||||
"auth.proxy" = {
|
"auth.proxy" = {
|
||||||
|
|
Loading…
Reference in a new issue