feat(wordpress): Switch to wp4nix for plugins and themes

This commit is contained in:
Tom Hubrecht 2024-01-09 15:51:36 +01:00
parent 4716f8a398
commit 8ddd33d88d
5 changed files with 19 additions and 50 deletions

View file

@ -1,6 +1,6 @@
{ pkgs, lib, ... }:
{ pkgs, sources, ... }:
let addons = import ./addons { inherit pkgs lib; };
let wp4nix = pkgs.callPackage sources.wp4nix { };
in {
imports = [ ./module.nix ];
@ -9,25 +9,25 @@ in {
sites = {
"lavoixduntexte.normalesup.eu" = {
themes = { inherit (addons.themes) avant; };
themes = { inherit (wp4nix.themes) avant; };
plugins = { inherit (addons.plugins) wordpress-importer; };
plugins = { inherit (wp4nix.plugins) wordpress-importer; };
languages = [ pkgs.wordpressPackages.languages.fr_FR ];
};
"bds.wp.dgnum.eu" = {
plugins = { inherit (addons.plugins) user-role-editor; };
plugins = { inherit (wp4nix.plugins) user-role-editor; };
languages = [ pkgs.wordpressPackages.languages.fr_FR ];
};
"bda.wp.dgnum.eu" = {
plugins = { inherit (addons.plugins) user-role-editor; };
plugins = { inherit (wp4nix.plugins) user-role-editor; };
languages = [ pkgs.wordpressPackages.languages.fr_FR ];
};
"cineclub.wp.dgnum.eu" = {
plugins = { inherit (addons.plugins) user-role-editor; };
plugins = { inherit (wp4nix.plugins) user-role-editor; };
languages = [ pkgs.wordpressPackages.languages.fr_FR ];
};
};