Move database to grafana settings
This commit is contained in:
parent
529ffd694f
commit
ff4c85291b
|
@ -220,6 +220,14 @@ in {
|
|||
secret_key = "$__file{${cfg.secret-key-file}}";
|
||||
};
|
||||
|
||||
database = {
|
||||
host = cfg.database.hostname;
|
||||
name = cfg.database.name;
|
||||
user = cfg.database.user;
|
||||
password = "$__{${cfg.database.password-file}}";
|
||||
type = "postgres";
|
||||
};
|
||||
|
||||
ldap.auth = mkIf (cfg.ldap != null) (let
|
||||
base = cfg.ldap.base-dn;
|
||||
|
||||
|
@ -258,14 +266,6 @@ in {
|
|||
});
|
||||
};
|
||||
|
||||
database = {
|
||||
host = cfg.database.hostname;
|
||||
name = cfg.database.name;
|
||||
user = cfg.database.user;
|
||||
passwordFile = cfg.database.password-file;
|
||||
type = "postgres";
|
||||
};
|
||||
|
||||
provision = {
|
||||
enable = true;
|
||||
datasources.settings.datasources = let
|
||||
|
|
Loading…
Reference in New Issue