🔧 update postgres permissions

This commit is contained in:
2023-11-27 12:14:54 -05:00
parent c39bbfd5fc
commit 4c3c44f052
3 changed files with 36 additions and 27 deletions

View File

@ -37,10 +37,21 @@ in
dump.enable = false;
database = {
createDatabase = false;
type = "postgres";
name = "gitea";
socket = "/run/postgresql";
user = "git";
};
};
postgresql = {
ensureDatabases = [ "gitea" ];
ensureUsers = [
{
name = "git";
}
];
};
postgresqlBackup.databases = [ "gitea" ];
};
}