blob: 2a860ba83e406b597d00cb445535d41910d369c5 (
plain) (
tree)
|
|
{ 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 ];
};
};
}
|