···1+# Lemmy {#module-services-lemmy}
2+3+Lemmy is a federated alternative to reddit in rust.
4+5+## Quickstart {#module-services-lemmy-quickstart}
6+7+the minimum to start lemmy is
8+9+```nix
10+services.lemmy = {
11+ enable = true;
12+ settings = {
13+ hostname = "lemmy.union.rocks";
14+ database.createLocally = true;
15+ };
16+ jwtSecretPath = "/run/secrets/lemmyJwt";
17+ caddy.enable = true;
18+}
19+```
20+21+(note that you can use something like agenix to get your secret jwt to the specified path)
22+23+this will start the backend on port 8536 and the frontend on port 1234.
24+It will expose your instance with a caddy reverse proxy to the hostname you've provided.
25+Postgres will be initialized on that same instance automatically.
26+27+## Usage {#module-services-lemmy-usage}
28+29+On first connection you will be asked to define an admin user.
30+31+## Missing {#module-services-lemmy-missing}
32+33+- Exposing with nginx is not implemented yet.
34+- This has been tested using a local database with a unix socket connection. Using different database settings will likely require modifications
···1+<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="module-services-lemmy">
2+ <title>Lemmy</title>
3+ <para>
4+ Lemmy is a federated alternative to reddit in rust.
5+ </para>
6+ <section xml:id="module-services-lemmy-quickstart">
7+ <title>Quickstart</title>
8+ <para>
9+ the minimum to start lemmy is
10+ </para>
11+ <programlisting language="bash">
12+services.lemmy = {
13+ enable = true;
14+ settings = {
15+ hostname = "lemmy.union.rocks";
16+ database.createLocally = true;
17+ };
18+ jwtSecretPath = "/run/secrets/lemmyJwt";
19+ caddy.enable = true;
20+}
21+</programlisting>
22+ <para>
23+ (note that you can use something like agenix to get your secret
24+ jwt to the specified path)
25+ </para>
26+ <para>
27+ this will start the backend on port 8536 and the frontend on port
28+ 1234. It will expose your instance with a caddy reverse proxy to
29+ the hostname you’ve provided. Postgres will be initialized on that
30+ same instance automatically.
31+ </para>
32+ </section>
33+ <section xml:id="module-services-lemmy-usage">
34+ <title>Usage</title>
35+ <para>
36+ On first connection you will be asked to define an admin user.
37+ </para>
38+ </section>
39+ <section xml:id="module-services-lemmy-missing">
40+ <title>Missing</title>
41+ <itemizedlist spacing="compact">
42+ <listitem>
43+ <para>
44+ Exposing with nginx is not implemented yet.
45+ </para>
46+ </listitem>
47+ <listitem>
48+ <para>
49+ This has been tested using a local database with a unix socket
50+ connection. Using different database settings will likely
51+ require modifications
52+ </para>
53+ </listitem>
54+ </itemizedlist>
55+ </section>
56+</chapter>
+4-2
pkgs/applications/graphics/gscan2pdf/default.nix
···1011perlPackages.buildPerlPackage rec {
12 pname = "gscan2pdf";
13- version = "2.12.1";
1415 src = fetchurl {
16 url = "mirror://sourceforge/gscan2pdf/${version}/${pname}-${version}.tar.xz";
17- sha256 = "0x20wpqqw6534rn73660zdfy4c3jpg2n31py566k0x2nd6g0mhg5";
18 };
1920 nativeBuildInputs = [ wrapGAppsHook ];
···111 # # Looks like you failed 1 test of 1.
112 # t/169_import_scan.t ........................... Dubious, test returned 1 (wstat 256, 0x100)
113 rm t/169_import_scan.t
00114115 # Disable a test which passes but reports an incorrect status
116 # t/0601_Dialog_Scan.t .......................... All 14 subtests passed
···1011perlPackages.buildPerlPackage rec {
12 pname = "gscan2pdf";
13+ version = "2.12.3";
1415 src = fetchurl {
16 url = "mirror://sourceforge/gscan2pdf/${version}/${pname}-${version}.tar.xz";
17+ sha256 = "tdXTcoI7DnrBsXtXR0r07hz0lDcAjZJad+o4wwxHcOk=";
18 };
1920 nativeBuildInputs = [ wrapGAppsHook ];
···111 # # Looks like you failed 1 test of 1.
112 # t/169_import_scan.t ........................... Dubious, test returned 1 (wstat 256, 0x100)
113 rm t/169_import_scan.t
114+ # t/1604_import_multipage_DjVu.t ................ Dubious, test returned 255 (wstat 65280, 0xff00)
115+ rm t/1604_import_multipage_DjVu.t
116117 # Disable a test which passes but reports an incorrect status
118 # t/0601_Dialog_Scan.t .......................... All 14 subtests passed
···156 sha256 = "0qc62di5823r7ly2lxkclzj9rhg2z7ms81igz44nv0fzv3dszdab";
157 })
158159- # These fix Firefox on sway and other non-Gnome wayland WMs. They should be
160- # removed whenever the following two patches make it onto a release:
161- # 1. https://hg.mozilla.org/mozilla-central/rev/51c13987d1b8
162- # 2. https://hg.mozilla.org/integration/autoland/rev/3b856ecc00e4
163- # This will probably happen in the next point release, but let's be careful
164- # and double check whether it's working on sway on the next v bump.
165- ++ lib.optionals (lib.versionAtLeast version "92") [
166- (fetchpatch {
167- url = "https://hg.mozilla.org/integration/autoland/raw-rev/3b856ecc00e4";
168- sha256 = "sha256-d8IRJD6ELC3ZgEs1ES/gy2kTNu/ivoUkUNGMEUoq8r8=";
169- })
170- (fetchpatch {
171- url = "https://hg.mozilla.org/mozilla-central/raw-rev/51c13987d1b8";
172- sha256 = "sha256-C2jcoWLuxW0Ic+Mbh3UpEzxTKZInljqVdcuA9WjspoA=";
173- })
174- ]
175-176 ++ patches;
177178···265 # this will run autoconf213
266 configureScript="$(realpath ./mach) configure"
267 export MOZCONFIG=$(pwd)/mozconfig
0268269 # Set C flags for Rust's bindgen program. Unlike ordinary C
270 # compilation, bindgen does not invoke $CC directly. Instead it
···156 sha256 = "0qc62di5823r7ly2lxkclzj9rhg2z7ms81igz44nv0fzv3dszdab";
157 })
15800000000000000000159 ++ patches;
160161···248 # this will run autoconf213
249 configureScript="$(realpath ./mach) configure"
250 export MOZCONFIG=$(pwd)/mozconfig
251+ export MOZBUILD_STATE_PATH=$(pwd)/mozbuild
252253 # Set C flags for Rust's bindgen program. Unlike ordinary C
254 # compilation, bindgen does not invoke $CC directly. Instead it