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 {
services.postgresql = {
enable = true;
ensureDatabases = [ "grafana" ];
ensureUsers = [
shb.postgresql.passwords = [
{
name = "grafana";
ensurePermissions = {
"DATABASE grafana" = "ALL PRIVILEGES";
};
ensureClauses = {
"login" = true;
};
username = "grafana";
database = "grafana";
}
];
};
services.grafana = {
enable = true;