katzen-cafe/modules/postgres.nix
2023-05-03 14:38:40 +02:00

18 lines
280 B
Nix

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