2023-11-04 16:12:45 +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-11-04 16:12:45 +05:30
|
|
|
ensureDatabases = [ "dendrite" ];
|
2023-08-19 23:08:18 +05:30
|
|
|
ensureUsers = [
|
|
|
|
{
|
|
|
|
name = "dendrite";
|
2023-11-23 00:13:54 +05:30
|
|
|
ensureDBOwnership = true;
|
2023-08-19 23:08:18 +05:30
|
|
|
}
|
|
|
|
];
|
2023-08-19 15:05:28 +05:30
|
|
|
};
|
|
|
|
}
|