18 lines
358 B
Nix
18 lines
358 B
Nix
{...}: {
|
|
services.postgresql = {
|
|
enable = true;
|
|
ensureUsers = [
|
|
{
|
|
name = "misskey";
|
|
ensurePermissions."DATABASE misskey" = "ALL PRIVILEGES";
|
|
}
|
|
];
|
|
ensureDatabases = ["misskey"];
|
|
};
|
|
services.redis.servers."misskey" = {
|
|
enable = true;
|
|
port = 6379;
|
|
};
|
|
networking.firewall.allowedTCPPorts = [8024];
|
|
}
|