switch to ensureDBOwnership for buildbot

This commit is contained in:
Jörg Thalheim 2023-11-18 08:32:11 +01:00
parent fe1909ce5c
commit 3c1cf982ad

View file

@ -209,12 +209,10 @@ in
services.postgresql = { services.postgresql = {
enable = true; enable = true;
ensureDatabases = [ "buildbot" ]; ensureDatabases = [ "buildbot" ];
ensureUsers = [ ensureUsers = [{
{
name = "buildbot"; name = "buildbot";
ensurePermissions."DATABASE buildbot" = "ALL PRIVILEGES"; ensureDBOwnership = true;
} }];
];
}; };
services.nginx.enable = true; services.nginx.enable = true;