19 lines
334 B
Nix
19 lines
334 B
Nix
|
|
{ pkgs, ... }:
|
||
|
|
{
|
||
|
|
services.postgresql = {
|
||
|
|
enable = true;
|
||
|
|
package = pkgs.postgresql_13;
|
||
|
|
ensureDatabases = [ "nextcloud" ];
|
||
|
|
ensureUsers = [
|
||
|
|
{
|
||
|
|
name = "nextcloud";
|
||
|
|
ensurePermissions = {
|
||
|
|
"DATABASE nextcloud" = "ALL PRIVILEGES";
|
||
|
|
};
|
||
|
|
}
|
||
|
|
];
|
||
|
|
};
|
||
|
|
}
|
||
|
|
|
||
|
|
# vim: set et ts=2 sw=2 ai:
|