nixos/gollum: Add optional MathJax support (#32338)
This commit is contained in:
parent
f3cf114878
commit
8e97f8fac4
|
@ -32,6 +32,12 @@ in
|
||||||
description = "Content of the configuration file";
|
description = "Content of the configuration file";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mathjax = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Enable support for math rendering using MathJax";
|
||||||
|
};
|
||||||
|
|
||||||
branch = mkOption {
|
branch = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "master";
|
default = "master";
|
||||||
|
@ -84,6 +90,7 @@ in
|
||||||
--host ${cfg.address} \
|
--host ${cfg.address} \
|
||||||
--config ${builtins.toFile "gollum-config.rb" cfg.extraConfig} \
|
--config ${builtins.toFile "gollum-config.rb" cfg.extraConfig} \
|
||||||
--ref ${cfg.branch} \
|
--ref ${cfg.branch} \
|
||||||
|
${optionalString cfg.mathjax "--mathjax"} \
|
||||||
${cfg.stateDir}
|
${cfg.stateDir}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue