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.
This commit is contained in:
2024-05-30 13:35:58 +02:00
parent 15085c8a05
commit 1dd7550459
2 changed files with 20 additions and 0 deletions

View File

@@ -15,6 +15,7 @@
./public-inbox.nix
./gitea.nix
./msmtp.nix
./postgresql.nix
#./pxe.nix
];

19
m/hut/postgresql.nix Normal file
View File

@@ -0,0 +1,19 @@
{ 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
'';
};
}