nixos/gollum: add option 'no-edit'

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

View file

@ -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}