From e9890b682374449dff95dbac5e207f6ee7a0b022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Fri, 28 Apr 2023 08:34:50 +0100 Subject: [PATCH] update wordpress config --- config/services/wordpress.nix | 48 +++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/config/services/wordpress.nix b/config/services/wordpress.nix index 71bdbf9f..0bad84f9 100644 --- a/config/services/wordpress.nix +++ b/config/services/wordpress.nix @@ -19,8 +19,56 @@ extraConfig = '' $_SERVER['HTTPS']='on'; ''; + + plugins = { + inherit + (pkgs.wordpress-plugins) + google-sitemap-generator + indieweb + pubsubhubbub + indieweb-post-kinds + indeiauth + syndication-links + micropub + webmention + activitypub + friends + hum + webfinger + nodeinfo + classic-editor + wordpress-seo + ilab-media-tools + translatepress-multilingual + webp-express + jetpack + ; + }; + themes = { + inherit + (pkgs.wordpress-themes) + sempress + twentytwentythree + ; + }; }; + nixpkgs.overlays = [ + (self: super: { + wordpress = super.wordpress.overrideAttrs (oldAttrs: { + installPhase = + oldAttrs.installPhase + + '' + ln -s /var/lib/wordpress/lotte.chir.rs/webp-express $out/share/wordpress/wp-content/webp-express + ''; + }); + }) + ]; + + systemd.tmpfiles.rules = [ + "d '/var/lib/wordpress/lotte.chir.rs/webp-express' 0750 wordpress acme - -" + ]; + services.caddy.virtualHosts."lotte.chir.rs" = { useACMEHost = "chir.rs"; logFormat = lib.mkForce "";