Compare commits

..

2 commits

View file

@ -95,8 +95,18 @@ in {
];
};
# NOTE: no need to use postgresql.ensureDatabases because the gitea module
# takes care of this automatically
services.postgresql = {
enable = true;
ensureDatabases = ["gitea"];
ensureUsers = [
{
name = "git";
ensurePermissions."DATABASE gitea" = "ALL PRIVILEGES";
}
];
};
services.postgresqlBackup = {
databases = ["gitea"];
};