From 89597be3f4d97cf2902867b76a7ea6fba4731322 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Tue, 9 Jan 2024 09:11:11 +0100 Subject: [PATCH] feat(wordpress): Add user role editor plugin --- machines/web01/wordpress/addons/plugins.nix | 4 ++++ machines/web01/wordpress/default.nix | 11 +++++++++++ machines/web01/wordpress/module.nix | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/machines/web01/wordpress/addons/plugins.nix b/machines/web01/wordpress/addons/plugins.nix index e5d989e..493be0c 100644 --- a/machines/web01/wordpress/addons/plugins.nix +++ b/machines/web01/wordpress/addons/plugins.nix @@ -3,4 +3,8 @@ version = "0.8.1"; hash = "sha256-vOgAFIapqGTFLMeH7xVPnfRKtKT+E7ToUkcz5/a9f8g="; }; + user-role-editor = { + version = "4.64.1"; + hash = "sha256-ZOpeY0SMeL6jT6PbGWnGlTADYUY9eUufymfRBqvCVac="; + }; } diff --git a/machines/web01/wordpress/default.nix b/machines/web01/wordpress/default.nix index 2bde16d..efe7a21 100644 --- a/machines/web01/wordpress/default.nix +++ b/machines/web01/wordpress/default.nix @@ -17,6 +17,17 @@ in { }; "bds.wp.dgnum.eu" = { + plugins = { inherit (addons.plugins) user-role-editor; }; + languages = [ pkgs.wordpressPackages.languages.fr_FR ]; + }; + + "bda.wp.dgnum.eu" = { + plugins = { inherit (addons.plugins) user-role-editor; }; + languages = [ pkgs.wordpressPackages.languages.fr_FR ]; + }; + + "cineclub.wp.dgnum.eu" = { + plugins = { inherit (addons.plugins) user-role-editor; }; languages = [ pkgs.wordpressPackages.languages.fr_FR ]; }; }; diff --git a/machines/web01/wordpress/module.nix b/machines/web01/wordpress/module.nix index 5e5e63a..3be092f 100644 --- a/machines/web01/wordpress/module.nix +++ b/machines/web01/wordpress/module.nix @@ -33,7 +33,7 @@ let firewall.allowedTCPPorts = [ 443 ]; }; - environment.systemPackages = [ pkgs.wp-cli ]; + environment.systemPackages = [ pkgs.wp-cli pkgs.neovim ]; system.stateVersion = "23.11"; };