From 8e97f8fac4a5ccd07d78547848d0c5164c060519 Mon Sep 17 00:00:00 2001 From: Pierre-Etienne Meunier Date: Tue, 5 Dec 2017 13:20:31 +0100 Subject: nixos/gollum: Add optional MathJax support (#32338) --- nixos/modules/services/misc/gollum.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'nixos/modules/services/misc/gollum.nix') 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} ''; }; -- cgit 1.4.1