WordPress: Difference between revisions

imported>Onny
mNo edit summary
imported>Onny
Update themes and plugins option two new attrs format
Line 57: Line 57:
<syntaxHighlight lang="nix">
<syntaxHighlight lang="nix">
services.wordpress.sites."localhost" = {
services.wordpress.sites."localhost" = {
   themes = [ pkgs.wordpressPackages.themes.twentytwentytwo ];
   themes = {
   plugins = with pkgs.wordpressPackages.plugins; [
    inherit (pkgs.wordpressPackages.themes)
    antispam-bee
      twentytwentytwo;
    opengraph
  };
   ];
   plugins = {
    inherit (pkgs.wordpressPackages.plugins)
      antispam-bee
      opengraph;
   };
};
};
</syntaxHighlight>
</syntaxHighlight>
Line 83: Line 87:


   services.wordpress.sites."localhost" = {
   services.wordpress.sites."localhost" = {
     themes = [ wordpress-theme-responsive ];
     themes = {
      inherit (pkgs.wordpressPackages.themes)
        wordpress-theme-responsive;
    };
   };
   };