this post was submitted on 26 Jun 2023
5 points (100.0% liked)

Nix / NixOS

1654 readers
36 users here now

Main links

Videos

founded 1 year ago
MODERATORS
 

I was looking into the prospect of deploying an instance of Lemmy myself. Being an ULTRA nix fanboi (and a Docker-hater), I was immediately struck by how much the process still depends on (and, IMO, is being held hostage by) Docker containers.

Can we (or at least someone more capable and with more free time than I) help the Lemmy community by harnessing the power of nix and flakes to create declarative, reproducible Lemmy scratch-built instance deployment?

I suspect it would be exceptionally easy for some of you out there. If you are a flakes power-user, just think of how much this could help the community (and perhaps awaken a few people to the power of flakes).

ps. if this already exists, please point me in the right direction.

you are viewing a single comment's thread
view the rest of the comments
[–] samae@lemmy.menf.in 1 points 1 year ago

There is a lemmy nixos module https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=relevance&type=packages&query=lemmy in nixpkgs which is functional. Or at least almost there in terms of ease of use. Even with experience, it still took me over an hour before I could successfully start my instance.

ofc this doesn't cover the host creation, and other details, I already had a server with NixOS running.