diff options
author | Benno Bielmeier <nix@bbenno.com> | 2022-04-30 19:40:37 +0200 |
---|---|---|
committer | Kerstin <kerstin@erictapen.name> | 2022-05-22 15:06:00 +0200 |
commit | d156db7d1752b48531b91d65db8f9bc91e29c399 (patch) | |
tree | f1ecca9bf247b739506409f4fc62685636945934 /nixos/modules/services | |
parent | 8e7b82be494070c13229612859ac8f1c3260f6b3 (diff) | |
download | nixpkgs-d156db7d1752b48531b91d65db8f9bc91e29c399.tar nixpkgs-d156db7d1752b48531b91d65db8f9bc91e29c399.tar.gz nixpkgs-d156db7d1752b48531b91d65db8f9bc91e29c399.tar.bz2 nixpkgs-d156db7d1752b48531b91d65db8f9bc91e29c399.tar.lz nixpkgs-d156db7d1752b48531b91d65db8f9bc91e29c399.tar.xz nixpkgs-d156db7d1752b48531b91d65db8f9bc91e29c399.tar.zst nixpkgs-d156db7d1752b48531b91d65db8f9bc91e29c399.zip |
nixos/gollum: add option 'no-edit'
Diffstat (limited to 'nixos/modules/services')
-rw-r--r-- | nixos/modules/services/misc/gollum.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nixos/modules/services/misc/gollum.nix b/nixos/modules/services/misc/gollum.nix index dbff3e21a00..354278fad22 100644 --- a/nixos/modules/services/misc/gollum.nix +++ b/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} |