1 { lib, pkgs, config, myconfig, ... }:
3 mantisbt = pkgs.callPackage ./mantisbt.nix {
4 inherit (pkgs.webapps) mantisbt_2 mantisbt_2-plugins;
5 env = myconfig.env.tools.mantisbt;
7 gitweb = pkgs.callPackage ./gitweb.nix { gitoliteDir = config.services.myGitolite.gitoliteDir; };
9 cfg = config.services.myWebsites.tools.git;
11 options.services.myWebsites.tools.git = {
12 enable = lib.mkEnableOption "enable git's website";
15 config = lib.mkIf cfg.enable {
16 security.acme.certs."eldiron".extraDomains."git.immae.eu" = null;
18 secrets.keys = mantisbt.keys;
19 services.myWebsites.tools.modules =
20 gitweb.apache.modules ++
21 mantisbt.apache.modules;
22 system.extraSystemBuilderCmds = ''
24 ln -s ${gitweb.webRoot} $out/webapps/${gitweb.apache.webappName}
25 ln -s ${mantisbt.webRoot} $out/webapps/${mantisbt.apache.webappName}
28 services.myWebsites.tools.vhostConfs.git = {
30 hosts = ["git.immae.eu" ];
31 root = gitweb.apache.root;
33 gitweb.apache.vhostConf
34 mantisbt.apache.vhostConf
37 RewriteCond %{REQUEST_URI} ^/releases
38 RewriteRule /releases(.*) https://release.immae.eu$1 [P,L]
42 services.myPhpfpm.poolConfigs = {
43 mantisbt = mantisbt.phpFpm.pool;