Did anyone managed to host a mastodon instance on NixOS ?
Well, there was some effort to provide a NixOS module for that task, but
without success yet.
Thanks for the issue link, it’s a shame the user who tried to port it disappeared.
I just want to throw out there that you could use something like docker to run a mastodon instance. It’s not as good as having a nix package but it’d work. I’m honestly still using CoreOS/Docker on my server since I haven’t quite gotten a good grasp on nix expressions, and I’m still getting a feel for the nix community.
I’m not sure why the nix package the person on that github issue wrote stopped working. I use ruby and nodejs for my work, and I’ve gotten my critical packages to build with nix expressions without too much pain. I’d love to offer to help with this issue of running a mastodon instance, but I don’t really have the time for it right now, I want to say that I think it’d be great if it was in Nix though.
It’s possible that you mentioned my approach on mastodon. I don’t think
it is hard in general, but at that time both Nixpkgs and Mastodon moved
to fast for me, so I got eventually frustrated with catching up. Also
I’m don’t have much knowledge about webapps yet.
I just rebased my approach to current Nixpkgs master and managed to
build it: https://github.com/erictapen/nixpkgs/tree/mastodon
This is not functional in any way.
Next step could be to bump Mastodon to a recent version. I also have no
time at the moment, but maybe somebody else can take some useful hints
I would also be really interested in a “works-out-of-the-box-on-nixos”
service/module as I’m planning to move all my stuff to a bare-metal
server or VPS mid-2019 - and a mastodon instance for myself would be
(because I was on mastodon.fun and had ~1400 toots and then it
suddenly vanished :’-((( )