Move database to grafana settings

This commit is contained in:
niten 2022-12-08 16:44:44 -08:00
parent 529ffd694f
commit ff4c85291b
1 changed files with 8 additions and 8 deletions

View File

@ -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