1 { lib, pkgs, config, ... }:
3 mantisbt = pkgs.callPackage ./mantisbt.nix {
4 inherit (pkgs.webapps) mantisbt_2 mantisbt_2-plugins;
5 env = config.myEnv.tools.mantisbt;
7 gitweb = pkgs.callPackage ./gitweb.nix {
8 gitoliteDir = config.myServices.gitolite.gitoliteDir;
11 cfg = config.myServices.websites.tools.git;
13 options.myServices.websites.tools.git = {
14 enable = lib.mkEnableOption "enable git's website";
17 config = lib.mkIf cfg.enable {
18 secrets.keys = mantisbt.keys;
19 services.websites.env.tools.modules =
20 gitweb.apache.modules ++
21 mantisbt.apache.modules;
22 myServices.websites.webappDirs."${gitweb.apache.webappName}" = gitweb.webRoot;
23 myServices.websites.webappDirs."${mantisbt.apache.webappName}" = mantisbt.webRoot;
25 system.activationScripts.mantisbt = mantisbt.activationScript;
26 services.websites.env.tools.vhostConfs.git = {
29 hosts = ["git.immae.eu" ];
30 root = gitweb.apache.root;
32 gitweb.apache.vhostConf
33 mantisbt.apache.vhostConf
36 RewriteCond %{REQUEST_URI} ^/releases
37 RewriteRule /releases(.*) https://release.immae.eu$1 [P,L]
41 services.phpfpm.pools = {
43 listen = mantisbt.phpFpm.socket;
44 extraConfig = mantisbt.phpFpm.pool;