1
0
Fork 0

use new postgresql module for grafana

This commit is contained in:
ibizaman 2023-11-05 16:34:42 -08:00
parent 77e16c0f76
commit df03ba57e2

View file

@ -36,21 +36,12 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.postgresql = { shb.postgresql.passwords = [
enable = true;
ensureDatabases = [ "grafana" ];
ensureUsers = [
{ {
name = "grafana"; username = "grafana";
ensurePermissions = { database = "grafana";
"DATABASE grafana" = "ALL PRIVILEGES";
};
ensureClauses = {
"login" = true;
};
} }
]; ];
};
services.grafana = { services.grafana = {
enable = true; enable = true;