katzen-cafe/modules/postgres.nix

19 lines
295 B
Nix
Raw Normal View History

2023-04-27 01:48:20 +02:00
{ pkgs, ... }:
{
services.postgresql = {
enable = true;
2023-05-03 14:38:40 +02:00
ensureUsers = [
{
name = "forgejo";
ensurePermissions = {
"DATABASE \"forgejo\"" = "ALL PRIVILEGES";
};
}
];
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
};
}