nixos/gollum: add option 'user-icons'

This commit is contained in:
Benno Bielmeier 2022-04-30 19:40:36 +02:00 committed by Kerstin
parent fa7cae1bcc
commit 8e7b82be49

View file

@ -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;
@ -111,6 +117,7 @@ in
${optionalString cfg.emoji "--emoji"} \
${optionalString cfg.h1-title "--h1-title"} \
${optionalString (cfg.allowUploads != null) "--allow-uploads ${cfg.allowUploads}"} \
${optionalString (cfg.user-icons != null) "--user-icons ${cfg.user-icons}"} \
${cfg.stateDir}
'';
};