summaryrefslogtreecommitdiffstats
path: root/nixos
diff options
context:
space:
mode:
authorKim Lindberger <kim.lindberger@gmail.com>2021-08-17 22:56:55 +0200
committerGitHub <noreply@github.com>2021-08-17 22:56:55 +0200
commit7f857f1c32580c056d3b09758f0196a2acae962d (patch)
tree9df96a0e122d21cc5e46df901685e6cfa772cae4 /nixos
parent1594c64eac18e4bb2526a8a3820e9cb6bacfa160 (diff)
parent12ff4b79e48d9c4aa5660d2ec7ce52a21806d8e4 (diff)
Merge pull request #133611 from talyz/discourse-2.7.7
discourse: 2.7.5 -> 2.7.7, plugin updates and fixes
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-apps/discourse.nix1
-rw-r--r--nixos/modules/services/web-apps/discourse.xml13
-rw-r--r--nixos/tests/discourse.nix4
3 files changed, 14 insertions, 4 deletions
diff --git a/nixos/modules/services/web-apps/discourse.nix b/nixos/modules/services/web-apps/discourse.nix
index 8d5302ba267b..050e4ee3d329 100644
--- a/nixos/modules/services/web-apps/discourse.nix
+++ b/nixos/modules/services/web-apps/discourse.nix
@@ -771,7 +771,6 @@ in
"tmp"
"assets/javascripts/plugins"
"public"
- "plugins"
"sockets"
];
RuntimeDirectoryMode = 0750;
diff --git a/nixos/modules/services/web-apps/discourse.xml b/nixos/modules/services/web-apps/discourse.xml
index 1d6866e7b352..184c9c6363e5 100644
--- a/nixos/modules/services/web-apps/discourse.xml
+++ b/nixos/modules/services/web-apps/discourse.xml
@@ -284,12 +284,23 @@ services.discourse = {
Ruby dependencies are listed in its
<filename>plugin.rb</filename> file as function calls to
<literal>gem</literal>. To construct the corresponding
- <filename>Gemfile</filename>, run <command>bundle
+ <filename>Gemfile</filename> manually, run <command>bundle
init</command>, then add the <literal>gem</literal> lines to it
verbatim.
</para>
<para>
+ Much of the packaging can be done automatically by the
+ <filename>nixpkgs/pkgs/servers/web-apps/discourse/update.py</filename>
+ script - just add the plugin to the <literal>plugins</literal>
+ list in the <function>update_plugins</function> function and run
+ the script:
+ <programlisting language="bash">
+./update.py update-plugins
+</programlisting>.
+ </para>
+
+ <para>
Some plugins provide <link
linkend="module-services-discourse-site-settings">site
settings</link>. Their defaults can be configured using <xref
diff --git a/nixos/tests/discourse.nix b/nixos/tests/discourse.nix
index 2ed6fb957c20..7dd39085a007 100644
--- a/nixos/tests/discourse.nix
+++ b/nixos/tests/discourse.nix
@@ -4,7 +4,7 @@
# 3. replying to that message via email.
import ./make-test-python.nix (
- { pkgs, lib, ... }:
+ { pkgs, lib, package ? pkgs.discourse, ... }:
let
certs = import ./common/acme/server/snakeoil-certs.nix;
clientDomain = "client.fake.domain";
@@ -55,7 +55,7 @@ import ./make-test-python.nix (
services.discourse = {
enable = true;
- inherit admin;
+ inherit admin package;
hostname = discourseDomain;
sslCertificate = "${certs.${discourseDomain}.cert}";
sslCertificateKey = "${certs.${discourseDomain}.key}";