katzen-cafe/modules/postgres.nix

19 lines
332 B
Nix
Raw Permalink Normal View History

2024-07-29 18:44:41 +02:00
{pkgs, ...}: {
2023-04-27 01:48:20 +02:00
services.postgresql = {
enable = true;
2023-05-03 14:38:40 +02:00
ensureUsers = [
{
name = "forgejo";
2024-07-29 18:44:41 +02:00
# ensurePermissions = {
# "DATABASE \"forgejo\"" = "ALL PRIVILEGES";
# };
ensureDBOwnership = true;
2023-05-03 14:38:40 +02:00
}
];
ensureDatabases = [
"forgejo"
2023-11-21 10:19:35 +01:00
"catpad"
2023-05-03 14:38:40 +02:00
];
2023-04-27 01:48:20 +02:00
};
}