Files
jungle/m/hut/postgresql.nix
Rodrigo Arias Mallo 1dd7550459 Add PostgreSQL DB for performance tests results
The database will hold the performance results of the execution of the
benchmarks. We follow the same setup on knights3 for now.
2024-06-07 10:44:22 +02:00

20 lines
493 B
Nix

{ lib, ... }:
{
services.postgresql = {
enable = true;
ensureDatabases = [ "perftestsdb" ];
ensureUsers = [
{ name = "anavarro"; ensureClauses.superuser = true; }
{ name = "rarias"; ensureClauses.superuser = true; }
{ name = "grafana"; }
];
authentication = ''
#type database DBuser auth-method
local perftestsdb rarias trust
local perftestsdb anavarro trust
local perftestsdb grafana trust
'';
};
}