X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fwebapps%2Fetherpad-lite.nix;h=2e0995287e7f07074ebc7dfdf1694f383a851aa3;hp=7f0e2ed4afbc41c303b887e367af78ccb845e689;hb=4b0a82cc2f4597a11b9275cf156ae9cceffaf44f;hpb=e9c91c19475ed679676829bfd716e41009b560c8 diff --git a/modules/webapps/etherpad-lite.nix b/modules/webapps/etherpad-lite.nix index 7f0e2ed..2e09952 100644 --- a/modules/webapps/etherpad-lite.nix +++ b/modules/webapps/etherpad-lite.nix @@ -57,18 +57,22 @@ in description = '' Etherpad lite package to use. ''; + example = lib.literalExample '' + pkgs.webapps.etherpad-lite.withModules (p: [ p.ep_align ]); + ''; }; modules = lib.mkOption { type = lib.types.listOf lib.types.package; default = []; description = '' Etherpad lite modules to use. + DEPRECATED: use package directly ''; }; # Output variables workdir = lib.mkOption { type = lib.types.package; - default = cfg.package.withModules cfg.modules; + default = cfg.package.withModules (_: cfg.modules); description = '' Adjusted Etherpad lite package with plugins '';