nix-dotfiles/services/wordpress.nix

35 lines
777 B
Nix
Raw Normal View History

2024-05-25 19:47:29 +02:00
{ config, lib, pkgs, ... }: let
wordpress-theme = pkgs.stdenv.mkDerivation rec {
name = "responsive";
version = "4.7.9";
src = pkgs.fetchzip {
url = "https://downloads.wordpress.org/theme/responsive.${version}.zip";
hash = "sha256-7K/pwD1KAuipeOAOLXd2wqOUEhwk+uNGIllVWzDHzp0=";
};
installPhase = "mkdir -p $out; cp -R * $out/";
};
in {
services.wordpress.sites."lauterer.it" = {
languages = [
pkgs.wordpressPackages.languages.de_DE
];
settings = {
WPLANG = "de_DE";
};
#themes = {
# inherit wordpress-theme;
#};
plugins = with pkgs.wordpressPackages.plugins; [
#anti-spam-bee
code-syntax-block
cookie-notice
#lightbox-with-photoswipe
wp-gdpr-compliance
];
};
}