HermitCollective.nix/services/iceshrimp.nix

30 lines
779 B
Nix

# FUCK
{
services = {
iceshrimp = {
enable = true; # Actually enable the module
configureNginx = {
enable = false; #?
};
stateDir = "/var/lib/iceshrimp";
mediaDir = "/var/lib/iceshrimp/files";
settings = {
url = "https://mastodon.hermitcollective.net";
maxNoteLength = 35124; # Length of the GPL3 + long;
maxCaptionLength = 5000; # We did it HermitCollective!! We solved accesibility!
port = 2004;
ssl = true;
};
};
nginx.virtualHosts."mastodon.hermitcollective.net" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:2004";
proxyWebsockets = true; # needed if you need to use WebSocket
};
};
};
}