diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-05-04 00:12:46 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-05-04 00:12:46 +0200 |
commit | 4b0a82cc2f4597a11b9275cf156ae9cceffaf44f (patch) | |
tree | a384ea0b7a610387f9a9cb8b6de4de58e8dd76b0 /modules/private/websites/tools/ether | |
parent | e9c91c19475ed679676829bfd716e41009b560c8 (diff) | |
download | Nix-4b0a82cc2f4597a11b9275cf156ae9cceffaf44f.tar.gz Nix-4b0a82cc2f4597a11b9275cf156ae9cceffaf44f.tar.zst Nix-4b0a82cc2f4597a11b9275cf156ae9cceffaf44f.zip |
Fix some etherpad-lite modules and packaging
The upgrade to 1.8.3 broke many modules, which were patched to continue
working correctly.
This commit also reworks the module system, making it similar to
python’s withPackages.
Diffstat (limited to 'modules/private/websites/tools/ether')
-rw-r--r-- | modules/private/websites/tools/ether/default.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/modules/private/websites/tools/ether/default.nix b/modules/private/websites/tools/ether/default.nix index a0329ef..3350a4a 100644 --- a/modules/private/websites/tools/ether/default.nix +++ b/modules/private/websites/tools/ether/default.nix | |||
@@ -125,6 +125,10 @@ in { | |||
125 | "defaultLang": "fr" | 125 | "defaultLang": "fr" |
126 | } | 126 | } |
127 | }, | 127 | }, |
128 | "ep_comments_page": { | ||
129 | "displayCommentAsIcon": true, | ||
130 | "highlightSelectedText": true | ||
131 | }, | ||
128 | "socketTransportProtocols" : ["xhr-polling", "jsonp-polling", "htmlfile"], | 132 | "socketTransportProtocols" : ["xhr-polling", "jsonp-polling", "htmlfile"], |
129 | "loadTest": false, | 133 | "loadTest": false, |
130 | "indentationOnNewLine": false, | 134 | "indentationOnNewLine": false, |
@@ -152,7 +156,16 @@ in { | |||
152 | ]; | 156 | ]; |
153 | services.etherpad-lite = { | 157 | services.etherpad-lite = { |
154 | enable = true; | 158 | enable = true; |
155 | modules = builtins.attrValues pkgs.webapps.etherpad-lite-modules; | 159 | package = pkgs.webapps.etherpad-lite.withModules (p: [ |
160 | p.ep_align p.ep_bookmark p.ep_colors p.ep_comments_page | ||
161 | p.ep_cursortrace p.ep_delete_empty_pads p.ep_embedmedia | ||
162 | p.ep_font_size p.ep_headings2 p.ep_immae_buttons p.ep_ldapauth | ||
163 | p.ep_line_height p.ep_markdown p.ep_mypads p.ep_page_view | ||
164 | p.ep_previewimages p.ep_ruler p.ep_scrollto | ||
165 | p.ep_set_title_on_pad p.ep_subscript_and_superscript | ||
166 | p.ep_timesliderdiff | ||
167 | ]); | ||
168 | modules = []; | ||
156 | sessionKeyFile = "/var/secrets/webapps/tools-etherpad-sessionkey"; | 169 | sessionKeyFile = "/var/secrets/webapps/tools-etherpad-sessionkey"; |
157 | apiKeyFile = "/var/secrets/webapps/tools-etherpad-apikey"; | 170 | apiKeyFile = "/var/secrets/webapps/tools-etherpad-apikey"; |
158 | configFile = "/var/secrets/webapps/tools-etherpad"; | 171 | configFile = "/var/secrets/webapps/tools-etherpad"; |