2023-10-30 00:59:51 +05:30
|
|
|
{pkgs, ...}: {
|
2023-08-19 15:05:28 +05:30
|
|
|
services.postgresql = {
|
|
|
|
enable = true;
|
2023-10-30 00:59:51 +05:30
|
|
|
authentication = pkgs.lib.mkOverride 10 ''
|
2023-10-30 01:13:52 +05:30
|
|
|
local all all trust
|
|
|
|
host all all 127.0.0.1/32 trust
|
|
|
|
host all all ::1/128 trust
|
2023-10-29 23:53:58 +05:30
|
|
|
'';
|
2023-08-19 23:08:18 +05:30
|
|
|
ensureDatabases = ["dendrite"];
|
|
|
|
ensureUsers = [
|
|
|
|
{
|
|
|
|
name = "dendrite";
|
|
|
|
ensurePermissions = {
|
|
|
|
"DaTABASE dendrite" = "ALL PRIVILEGES";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2023-08-19 15:05:28 +05:30
|
|
|
};
|
|
|
|
}
|