blob: 2a860ba83e406b597d00cb445535d41910d369c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ lib, pkgs, config, mylibs, ... }:
let
# FIXME: add buildbot
gitweb = pkgs.callPackage ./gitweb.nix { gitoliteDir = config.services.myGitolite.gitoliteDir; };
cfg = config.services.myGitweb;
in {
options.services.myGitweb = {
enable = lib.mkEnableOption "my gitweb service";
};
config = lib.mkIf cfg.enable {
security.acme.certs."eldiron".extraDomains."git.immae.eu" = null;
nixpkgs.config.packageOverrides = oldpkgs: rec {
gitweb = oldpkgs.gitweb.overrideAttrs(old: {
installPhase = old.installPhase + ''
cp -r ${./theme} $out/gitweb-theme;
'';
});
};
services.myWebsites.tools.modules = gitweb.apache.modules;
services.myWebsites.tools.vhostConfs.git = {
certName = "eldiron";
hosts = ["git.immae.eu" ];
root = gitweb.webRoot;
extraConfig = [ gitweb.apache.vhostConf ];
};
};
}
|