git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/gollum: Add optional MathJax support (#32338)
commit8e97f8fac4a5ccd07d78547848d0c5164c060519 authorPierre-Etienne Meunier <pierre-etienne.meunier@inria.fr> dateTue 5 Dec 2017, 13:20 (9 years ago) parentf3cf114
1 file changed+7
nixos/modules/services/misc/gollum.nix+7
nixos/modules/services/misc/gollum.nix+7
@@ -32,6 +32,12 @@ in
3232 description = "Content of the configuration file";
3333 };
3434
35+ mathjax = mkOption {
36+ type = types.bool;
37+ default = false;
38+ description = "Enable support for math rendering using MathJax";
39+ };
40+
3541 branch = mkOption {
3642 type = types.str;
3743 default = "master";
@@ -84,6 +90,7 @@ in
8490 --host ${cfg.address} \
8591 --config ${builtins.toFile "gollum-config.rb" cfg.extraConfig} \
8692 --ref ${cfg.branch} \
93+ ${optionalString cfg.mathjax "--mathjax"} \
8794 ${cfg.stateDir}
8895 '';
8996 };