2022-12-04 16:10:00 +00:00
|
|
|
{...}: {
|
2022-11-29 09:07:25 +00:00
|
|
|
services.postgresql = {
|
|
|
|
enable = true;
|
2022-12-04 13:45:43 +00:00
|
|
|
ensureUsers = [
|
|
|
|
{
|
|
|
|
name = "misskey";
|
|
|
|
ensurePermissions."DATABASE misskey" = "ALL PRIVILEGES";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
ensureDatabases = ["misskey"];
|
2022-11-29 09:07:25 +00:00
|
|
|
};
|
|
|
|
services.redis.servers."misskey" = {
|
|
|
|
enable = true;
|
|
|
|
port = 6379;
|
|
|
|
};
|
2022-12-04 13:45:43 +00:00
|
|
|
networking.firewall.allowedTCPPorts = [8024];
|
2022-11-29 09:07:25 +00:00
|
|
|
}
|