summary refs log tree commit diff
path: root/nixos/modules/services/web-apps/discourse.nix
diff options
context:
space:
mode:
authortalyz <kim.lindberger@gmail.com>2021-07-06 18:37:00 +0200
committertalyz <kim.lindberger@gmail.com>2021-07-14 13:18:06 +0200
commit20548f050e72a789ebbfe413b0fe7aa815e55c27 (patch)
tree3c51e218a3ad79741555d1b04cdcdcb0b596f1b3 /nixos/modules/services/web-apps/discourse.nix
parenteb122119a0fbd7f0c7b78dfcdfbc5d0cfada0c0f (diff)
downloadnixpkgs-20548f050e72a789ebbfe413b0fe7aa815e55c27.tar
nixpkgs-20548f050e72a789ebbfe413b0fe7aa815e55c27.tar.gz
nixpkgs-20548f050e72a789ebbfe413b0fe7aa815e55c27.tar.bz2
nixpkgs-20548f050e72a789ebbfe413b0fe7aa815e55c27.tar.lz
nixpkgs-20548f050e72a789ebbfe413b0fe7aa815e55c27.tar.xz
nixpkgs-20548f050e72a789ebbfe413b0fe7aa815e55c27.tar.zst
nixpkgs-20548f050e72a789ebbfe413b0fe7aa815e55c27.zip
nixos/discourse: Update plugin documentation
Update the documentation regarding plugins to reflect recent changes.
Diffstat (limited to 'nixos/modules/services/web-apps/discourse.nix')
-rw-r--r--nixos/modules/services/web-apps/discourse.nix19
1 files changed, 7 insertions, 12 deletions
diff --git a/nixos/modules/services/web-apps/discourse.nix b/nixos/modules/services/web-apps/discourse.nix
index d3ae072f86a..8d5302ba267 100644
--- a/nixos/modules/services/web-apps/discourse.nix
+++ b/nixos/modules/services/web-apps/discourse.nix
@@ -475,21 +475,16 @@ in
       plugins = lib.mkOption {
         type = lib.types.listOf lib.types.package;
         default = [];
-        example = ''
-          [
-            (pkgs.fetchFromGitHub {
-              owner = "discourse";
-              repo = "discourse-spoiler-alert";
-              rev = "e200cfa571d252cab63f3d30d619b370986e4cee";
-              sha256 = "0ya69ix5g77wz4c9x9gmng6l25ghb5xxlx3icr6jam16q14dzc33";
-            })
+        example = lib.literalExample ''
+          with config.services.discourse.package.plugins; [
+            discourse-canned-replies
+            discourse-github
           ];
         '';
         description = ''
-          <productname>Discourse</productname> plugins to install as a
-          list of derivations. As long as a plugin supports the
-          standard install method, packaging it should only require
-          fetching its source with an appropriate fetcher.
+          Plugins to install as part of
+          <productname>Discourse</productname>, expressed as a list of
+          derivations.
         '';
       };