katzen-cafe/modules/postgres.nix
2024-07-29 18:44:41 +02:00

19 lines
332 B
Nix

{pkgs, ...}: {
services.postgresql = {
enable = true;
ensureUsers = [
{
name = "forgejo";
# ensurePermissions = {
# "DATABASE \"forgejo\"" = "ALL PRIVILEGES";
# };
ensureDBOwnership = true;
}
];
ensureDatabases = [
"forgejo"
"catpad"
];
};
}