44 lines
832 B
Nix
44 lines
832 B
Nix
{ lib, pkgs, config, ... }:
|
|
let
|
|
http_port = 3000;
|
|
dbuname = "misskey";
|
|
dbport = 5432;
|
|
in
|
|
{
|
|
services = {
|
|
misskey = {
|
|
enable = true;
|
|
settings = {
|
|
url = "https://puppyplaypissparty.de";
|
|
port = http_port;
|
|
};
|
|
settings = {
|
|
db = {
|
|
user = dbuname;
|
|
port = dbport;
|
|
};
|
|
setupPassword = "VMoV33ov$C6JxVVXHffuVxHaqf^Cbmr9V1GSNgkyF6pq939Wr@c1hgfN7iD9%$De";
|
|
};
|
|
};
|
|
|
|
postgresql = {
|
|
enable = true;
|
|
ensureUsers = [
|
|
{
|
|
name = dbuname;
|
|
ensureDBOwnership = true;
|
|
}
|
|
];
|
|
ensureDatabases = [
|
|
dbuname
|
|
];
|
|
settings.port = dbport;
|
|
};
|
|
redis = {
|
|
servers."" = {
|
|
enable = true;
|
|
};
|
|
};
|
|
};
|
|
networking.firewall.allowedTCPPorts = [ http_port ];
|
|
}
|