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