nixos/gollum: add option 'user-icons'

main
Benno Bielmeier 2 years ago committed by Kerstin
parent fa7cae1bcc
commit 8e7b82be49
  1. 7
      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;
@ -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}
'';
};

Loading…
Cancel
Save