summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/misc/gollum.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/misc/gollum.nix')
-rw-r--r--nixos/modules/services/misc/gollum.nix16
1 files changed, 15 insertions, 1 deletions
diff --git a/nixos/modules/services/misc/gollum.nix b/nixos/modules/services/misc/gollum.nix
index cad73a871ba6..354278fad226 100644
--- a/nixos/modules/services/misc/gollum.nix
+++ b/nixos/modules/services/misc/gollum.nix
@@ -44,6 +44,12 @@ in
description = "Enable uploads of external files";
};
+ user-icons = mkOption {
+ type = types.nullOr (types.enum [ "gravatar" "identicon" ]);
+ default = null;
+ description = "User icons for history view";
+ };
+
emoji = mkOption {
type = types.bool;
default = false;
@@ -56,6 +62,12 @@ in
description = "Use the first h1 as page title";
};
+ no-edit = mkOption {
+ type = types.bool;
+ default = false;
+ description = "Disable editing pages";
+ };
+
branch = mkOption {
type = types.str;
default = "master";
@@ -110,12 +122,14 @@ in
${optionalString cfg.mathjax "--mathjax"} \
${optionalString cfg.emoji "--emoji"} \
${optionalString cfg.h1-title "--h1-title"} \
+ ${optionalString cfg.no-edit "--no-edit"} \
${optionalString (cfg.allowUploads != null) "--allow-uploads ${cfg.allowUploads}"} \
+ ${optionalString (cfg.user-icons != null) "--user-icons ${cfg.user-icons}"} \
${cfg.stateDir}
'';
};
};
};
- meta.maintainers = with lib.maintainers; [ erictapen ];
+ meta.maintainers = with lib.maintainers; [ erictapen bbenno ];
}