katzen-cafe/modules/postgres.nix
2023-11-21 10:19:35 +01:00

19 lines
295 B
Nix

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