nixos/gollum: add option 'no-edit'
This commit is contained in:
parent
8e7b82be49
commit
d156db7d17
1 changed files with 7 additions and 0 deletions
|
@ -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…
Reference in a new issue