1 { lib, pkgs, config, myconfig, mylibs, ... }:
3 mantisbt = pkgs.callPackage ./mantisbt.nix {
4 inherit (mylibs) fetchedGithub;
5 inherit (pkgs.webapps) mantisbt_2 mantisbt_2-plugins;
6 env = myconfig.env.tools.mantisbt;
8 gitweb = pkgs.callPackage ./gitweb.nix { gitoliteDir = config.services.myGitolite.gitoliteDir; };
10 cfg = config.services.myWebsites.tools.git;
12 options.services.myWebsites.tools.git = {
13 enable = lib.mkEnableOption "enable git's website";
16 config = lib.mkIf cfg.enable {
17 security.acme.certs."eldiron".extraDomains."git.immae.eu" = null;
19 mySecrets.keys = mantisbt.keys;
20 services.myWebsites.tools.modules =
21 gitweb.apache.modules ++
22 mantisbt.apache.modules;
23 system.extraSystemBuilderCmds = ''
25 ln -s ${gitweb.webRoot} $out/webapps/${gitweb.apache.webappName}
26 ln -s ${mantisbt.webRoot} $out/webapps/${mantisbt.apache.webappName}
29 services.myWebsites.tools.vhostConfs.git = {
31 hosts = ["git.immae.eu" ];
32 root = gitweb.apache.root;
34 gitweb.apache.vhostConf
35 mantisbt.apache.vhostConf
38 RewriteCond %{REQUEST_URI} ^/releases
39 RewriteRule /releases(.*) https://release.immae.eu$1 [P,L]
43 services.myPhpfpm.poolConfigs = {
44 mantisbt = mantisbt.phpFpm.pool;