1# Lemmy {#module-services-lemmy}
2
3Lemmy is a federated alternative to reddit in rust.
4
5## Quickstart {#module-services-lemmy-quickstart}
6
7the minimum to start lemmy is
8
9```nix
10services.lemmy = {
11 enable = true;
12 settings = {
13 hostname = "lemmy.union.rocks";
14 database.createLocally = true;
15 };
16 caddy.enable = true;
17}
18```
19
20this will start the backend on port 8536 and the frontend on port 1234.
21It will expose your instance with a caddy reverse proxy to the hostname you've provided.
22Postgres will be initialized on that same instance automatically.
23
24## Usage {#module-services-lemmy-usage}
25
26On first connection you will be asked to define an admin user.
27
28## Missing {#module-services-lemmy-missing}
29
30- Exposing with nginx is not implemented yet.
31- This has been tested using a local database with a unix socket connection. Using different database settings will likely require modifications