infrastructure/machines/nixos/web01/wordpress/default.nix
Tom Hubrecht 34f1a36b5e
All checks were successful
Build all the nodes / netaccess01 (push) Successful in 21s
Build all the nodes / netcore02 (push) Successful in 20s
Build all the nodes / netcore01 (push) Successful in 20s
Build all the nodes / ap01 (push) Successful in 32s
Build all the nodes / build01 (push) Successful in 1m25s
Build all the nodes / bridge01 (push) Successful in 1m32s
Build all the nodes / geo02 (push) Successful in 1m35s
Build all the nodes / hypervisor03 (push) Successful in 1m36s
Build all the nodes / hypervisor02 (push) Successful in 1m37s
Build all the nodes / geo01 (push) Successful in 1m46s
Build all the nodes / hypervisor01 (push) Successful in 1m48s
Build all the nodes / storage01 (push) Successful in 1m47s
Build all the nodes / rescue01 (push) Successful in 1m51s
Build all the nodes / tower01 (push) Successful in 1m37s
Build all the nodes / web02 (push) Successful in 1m29s
Run pre-commit on all files / pre-commit (push) Successful in 24s
Build the shell / build-shell (push) Successful in 33s
Build all the nodes / vault01 (push) Successful in 1m49s
Build all the nodes / compute01 (push) Successful in 2m16s
Build all the nodes / web01 (push) Successful in 2m21s
Build all the nodes / web03 (push) Successful in 1m26s
feat(web01/wordpress): Deploy npr.wp.dgnum.eu
2025-02-16 00:35:24 +01:00

83 lines
1.8 KiB
Nix

# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{ pkgs, sources, ... }:
let
wp4nix = pkgs.callPackage sources.wp4nix { };
in
{
imports = [ ./module.nix ];
services.wp-containers = {
enable = true;
sites = {
"lavoixduntexte.normalesup.eu" = {
themes = {
inherit (wp4nix.themes) avant;
};
plugins = {
inherit (wp4nix.plugins) user-role-editor;
};
languages = [ pkgs.wordpressPackages.languages.fr_FR ];
};
"bds.ens.fr" = {
themes = {
inherit (wp4nix.themes) gateway twentytwentythree;
};
plugins = {
inherit (wp4nix.plugins) user-role-editor;
};
languages = [ pkgs.wordpressPackages.languages.fr_FR ];
};
"bda.ens.fr" = {
themes = {
inherit (wp4nix.themes) twentytwentythree;
};
plugins = {
inherit (wp4nix.plugins) user-role-editor;
};
languages = [ pkgs.wordpressPackages.languages.fr_FR ];
};
"cineclub.ens.fr" = {
themes = {
inherit (wp4nix.themes) twentytwentythree;
};
plugins = {
inherit (wp4nix.plugins) user-role-editor;
};
languages = [ pkgs.wordpressPackages.languages.fr_FR ];
};
"npr.wp.dgnum.eu" = {
themes = {
inherit (wp4nix.themes) twentytwentyfive;
};
plugins = {
inherit (wp4nix.plugins) user-role-editor;
};
languages = [ pkgs.wordpressPackages.languages.fr_FR ];
};
};
};
dgn-backups.jobs.containers.settings.paths = [ "/var/lib/nixos-containers" ];
services.nginx.virtualHosts."bds.ens.fr".locations."/gestion2".return =
"301 https://gestion.bds.ens.fr";
}