2022-04-13 22:55:35 -04:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services = {
|
|
|
|
pleroma = {
|
|
|
|
enable = true;
|
|
|
|
configs = [ "import Config" ];
|
|
|
|
};
|
|
|
|
postgresql = {
|
|
|
|
ensureDatabases = [ "pleroma" ];
|
|
|
|
ensureUsers = [{
|
|
|
|
name = "pleroma";
|
|
|
|
ensurePermissions = { "DATABASE pleroma" = "ALL PRIVILEGES"; };
|
|
|
|
}];
|
|
|
|
};
|
2022-06-04 12:53:24 -04:00
|
|
|
postgresqlBackup.databases = [ "pleroma" ];
|
2022-04-13 22:55:35 -04:00
|
|
|
};
|
|
|
|
}
|