From 3b79220a41b455624908dcc618856117d4555029 Mon Sep 17 00:00:00 2001 From: Pierre-Etienne Meunier Date: Wed, 6 Dec 2017 10:10:54 +0100 Subject: nixos/gollum: enable emoji and file uploads (#32373) --- nixos/modules/services/misc/gollum.nix | 14 ++++++++++++++ 1 file changed, 14 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 a6ed0be2f36..0888221ab62 100644 --- a/nixos/modules/services/misc/gollum.nix +++ b/nixos/modules/services/misc/gollum.nix @@ -38,6 +38,18 @@ in 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 { type = types.str; default = "master"; @@ -91,6 +103,8 @@ in --config ${builtins.toFile "gollum-config.rb" cfg.extraConfig} \ --ref ${cfg.branch} \ ${optionalString cfg.mathjax "--mathjax"} \ + ${optionalString cfg.emoji "--emoji"} \ + ${optionalString (cfg.allowUploads != null) "--allow-uploads ${cfg.allowUploads}"} \ ${cfg.stateDir} ''; }; -- cgit 1.4.1