this post was submitted on 21 Nov 2021
8 points (100.0% liked)

Deprecated, merged with !NixOS

118 readers
1 users here now

Use https://lemmy.ml/c/nixos instead.

founded 4 years ago
MODERATORS
 

Does anyone here use https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/web-apps/lemmy.nix to run lemmy on their nixos server?

If yes, what are your experiences with it? What other services do you run?

top 3 comments
sorted by: hot top controversial new old
[–] colin@lemmy.uninsane.org 1 points 1 year ago (1 children)

i just got it running today, behind nginx. it did not work out of the box: i had to patch the upstream database migration scripts otherwise it would crash on start with some weird Postgres permissions edgecase. after that it's fine: idling at 200 MB and trivial CPU.

i'll try and upstream stuff to make it easier but until then here's what works for me (you can also find this by searching lemmy in a NUR checkout):

[–] musicmatze@lemmy.ml 2 points 1 year ago (1 children)
[–] colin@lemmy.uninsane.org 1 points 1 year ago

i threw up a PR. take a look, give it a whirl if you like: https://github.com/NixOS/nixpkgs/pull/232536

even with this upstream PR i deploy it with this two-line override. i'm suspect of a bug in upstream lemmy such that it expects to have superuser database access during the initial migrations -- which that local override patches. it'd be super helpful to get confirmation from other users if this that patch is also in need of upstreaming or if it's more due to my specific postgres configuration.