Has anyone ran Mastodon on NixOS?


#1

Did anyone managed to host a mastodon instance on NixOS ?


Who's using the fediverse? (Mastodon)
#2

People have tried, but I don’t know of anybody who’s managed.


#3

Well, there was some effort to provide a NixOS module for that task, but
without success yet.


#4

Forgot the link: https://github.com/NixOS/nixpkgs/issues/24600


#5

Thanks for the issue link, it’s a shame the user who tried to port it disappeared.


#6

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.


#7

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


#8

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
nice

(because I was on mastodon.fun and had ~1400 toots and then it
suddenly vanished :’-((( )