mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 05:37:40 +03:00
nixos/gollum: enable emoji and file uploads (#32373)
This commit is contained in:
parent
acab619ba0
commit
3b79220a41
@ -38,6 +38,18 @@ in
|
|||||||
description = "Enable support for math rendering using MathJax";
|
description = "Enable support for math rendering using MathJax";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
allowUploads = mkOption {
|
||||||
|
type = types.nullOr (types.enum [ "dir" "page" ]);
|
||||||
|
default = null;
|
||||||
|
description = "Enable uploads of external files";
|
||||||
|
};
|
||||||
|
|
||||||
|
emoji = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "Parse and interpret emoji tags";
|
||||||
|
};
|
||||||
|
|
||||||
branch = mkOption {
|
branch = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "master";
|
default = "master";
|
||||||
@ -91,6 +103,8 @@ in
|
|||||||
--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"} \
|
${optionalString cfg.mathjax "--mathjax"} \
|
||||||
|
${optionalString cfg.emoji "--emoji"} \
|
||||||
|
${optionalString (cfg.allowUploads != null) "--allow-uploads ${cfg.allowUploads}"} \
|
||||||
${cfg.stateDir}
|
${cfg.stateDir}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user