nixos/gollum: add option 'no-edit'

main
Benno Bielmeier 2 years ago committed by Kerstin
parent 8e7b82be49
commit d156db7d17
  1. 7
      nixos/modules/services/misc/gollum.nix

@ -62,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";
@ -116,6 +122,7 @@ 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}

Loading…
Cancel
Save