mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-11-24 22:58:44 +01:00
19 lines
295 B
Nix
19 lines
295 B
Nix
{ pkgs, ... }:
|
|
{
|
|
services.postgresql = {
|
|
enable = true;
|
|
ensureUsers = [
|
|
{
|
|
name = "forgejo";
|
|
ensurePermissions = {
|
|
"DATABASE \"forgejo\"" = "ALL PRIVILEGES";
|
|
};
|
|
}
|
|
];
|
|
ensureDatabases = [
|
|
"forgejo"
|
|
"catpad"
|
|
];
|
|
};
|
|
}
|