interesting question. I dont even know if Lemmy is compatible with Tor. I have no idea about the backend (I have no understanding of Tor either) but I know the front-end uses a lot of javascript, and that there is also an alternative front-end for Lemmy that doesn’t rely on js at all.
It works with tor browser in nonstrict mode. Some end nodes will not work with .ml domains though.
well, as far as I know hosting it as a Tor hidden service would resolve the problem with exit nodes, I’m not sure. and using the non js front end would mean it gotta be compatible with strictest mode, so we can go for the complete hacker experience xD
The other issue is that federation requires domain names, so I have no idea how they’d work with onion addresses, and back and forth between the two. If someone wanted to do that work they’re free to.
I have no idea how to set those up.
for future reference:
https://docs.pleroma.social/backend/configuration/onion_federation/
It is specific of Pleroma in some parts but can give you an idea.