2022-12-27 10:10:53 -05:00
|
|
|
_:
|
2022-04-13 22:55:35 -04:00
|
|
|
|
|
|
|
{
|
|
|
|
services = {
|
|
|
|
pleroma = {
|
|
|
|
enable = true;
|
2022-09-19 22:41:25 -04:00
|
|
|
secretConfigFile = "/var/lib/pleroma/secrets.exs";
|
|
|
|
configs = [
|
|
|
|
(builtins.readFile ./config.exs)
|
|
|
|
];
|
2022-04-13 22:55:35 -04:00
|
|
|
};
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|