summary refs log tree commit diff
diff options
context:
space:
mode:
authorPierre-Etienne Meunier <pierre-etienne.meunier@inria.fr>2017-12-05 13:20:31 +0100
committerJörg Thalheim <Mic92@users.noreply.github.com>2017-12-05 12:20:31 +0000
commit8e97f8fac4a5ccd07d78547848d0c5164c060519 (patch)
tree16d03282ce4a8f6f3dc1b5deec933d8ab781ca95
parentf3cf1148788dcaaaee5987e0d8344248051f02c5 (diff)
downloadnixpkgs-8e97f8fac4a5ccd07d78547848d0c5164c060519.tar
nixpkgs-8e97f8fac4a5ccd07d78547848d0c5164c060519.tar.gz
nixpkgs-8e97f8fac4a5ccd07d78547848d0c5164c060519.tar.bz2
nixpkgs-8e97f8fac4a5ccd07d78547848d0c5164c060519.tar.lz
nixpkgs-8e97f8fac4a5ccd07d78547848d0c5164c060519.tar.xz
nixpkgs-8e97f8fac4a5ccd07d78547848d0c5164c060519.tar.zst
nixpkgs-8e97f8fac4a5ccd07d78547848d0c5164c060519.zip
nixos/gollum: Add optional MathJax support (#32338)
-rw-r--r--nixos/modules/services/misc/gollum.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/gollum.nix b/nixos/modules/services/misc/gollum.nix
index 81fb024f909..a6ed0be2f36 100644
--- a/nixos/modules/services/misc/gollum.nix
+++ b/nixos/modules/services/misc/gollum.nix
@@ -32,6 +32,12 @@ in
       description = "Content of the configuration file";
     };
 
+    mathjax = mkOption {
+      type = types.bool;
+      default = false;
+      description = "Enable support for math rendering using MathJax";
+    };
+
     branch = mkOption {
       type = types.str;
       default = "master";
@@ -84,6 +90,7 @@ in
             --host ${cfg.address} \
             --config ${builtins.toFile "gollum-config.rb" cfg.extraConfig} \
             --ref ${cfg.branch} \
+            ${optionalString cfg.mathjax "--mathjax"} \
             ${cfg.stateDir}
         '';
       };