nixpkgs/pkgs/servers/web-apps/wordpress/packages
2023-05-19 14:11:10 +02:00
..
default.nix wordpressPackages.plugins.civicrm: init at 5.56.0 2023-01-04 09:28:35 +00:00
generate.sh wordpress: fix generate.sh 2023-05-17 17:15:12 +03:00
languages.json wordpress: update languages and plugins 2023-05-17 18:48:55 +03:00
plugins.json wordpressPackages.plugins: update, wPackages.plugins.wp-swiper: init at 1.0.32 2023-05-19 14:11:10 +02:00
README.md
themes.json wordpress: added ro_RO language + updated plugins,themes and languages 2023-04-07 12:30:42 +02:00
thirdparty.nix wordpressPackages.themes.geist: init 2.0.3 2023-02-13 19:10:46 +01:00
wordpress-languages.json wordpress: added ro_RO language + updated plugins,themes and languages 2023-04-07 12:30:42 +02:00
wordpress-plugins.json wordpressPackages.plugins: update, wPackages.plugins.wp-swiper: init at 1.0.32 2023-05-19 14:11:10 +02:00
wordpress-themes.json wordpressPackages: add builtins and update 2023-01-15 10:27:39 +00:00

= Adding plugin, theme or language =

To extend the wordpressPackages set, add a new line to the corresponding json file with the codename of the package:

  • wordpress-languages.json for language packs
  • wordpress-themes.json for themes
  • wordpress-plugins.json for plugins

The codename is the last part in the url of the plugin or theme page, for example cookie-notice in in the url https://wordpress.org/plugins/cookie-notice/ or twentytwenty in https://wordpress.org/themes/twentytwenty/.

In case of language packages, the name consists of country and language codes. For example de_DE for country code de (Germany) and language DE (German). For available translations and language codes see upstream translation repository.

To regenerate the nixpkgs wordpressPackages set, run:

./generate.sh

After that you can commit and submit the changes.

= Usage with the Wordpress module =

The plugins will be available in the namespace wordpressPackages.plugins. Using it together with the Wordpress module could look like this:

services.wordpress = {
  sites."blog.${config.networking.domain}" = {
    plugins = with pkgs.wordpressPackages.plugins; [
      anti-spam-bee
      code-syntax-block
      cookie-notice
      lightbox-with-photoswipe
      wp-gdpr-compliance
    ];
  };
};

The same scheme applies to themes and languages.