X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Ftools%2Fgit%2Fdefault.nix;h=495c5eace0c7c6da9db8a8f4dc0d7a2b0be6fe98;hb=f40f5b235b890f46770a22f005f8a0f664cf0562;hp=28b3c2d69bb5700bc07355794ebfe2fb8f76fcfb;hpb=ec2a5ffb986e9b21dff31e16d112aa9052a4bc5c;p=perso%2FImmae%2FConfig%2FNix.git diff --git a/nixops/modules/websites/tools/git/default.nix b/nixops/modules/websites/tools/git/default.nix index 28b3c2d..495c5ea 100644 --- a/nixops/modules/websites/tools/git/default.nix +++ b/nixops/modules/websites/tools/git/default.nix @@ -1,10 +1,10 @@ -{ lib, pkgs, config, myconfig, mylibs, ... }: +{ lib, pkgs, config, myconfig, ... }: let - mantisbt = pkgs.callPackage ./mantisbt/mantisbt.nix { - inherit (mylibs) fetchedGithub; + mantisbt = pkgs.callPackage ./mantisbt.nix { + inherit (pkgs.webapps) mantisbt_2 mantisbt_2-plugins; env = myconfig.env.tools.mantisbt; }; - gitweb = pkgs.callPackage ./gitweb/gitweb.nix { gitoliteDir = config.services.myGitolite.gitoliteDir; }; + gitweb = pkgs.callPackage ./gitweb.nix { gitoliteDir = config.services.myGitolite.gitoliteDir; }; cfg = config.services.myWebsites.tools.git; in { @@ -13,18 +13,8 @@ in { }; config = lib.mkIf cfg.enable { - security.acme.certs."eldiron".extraDomains."git.immae.eu" = null; - - nixpkgs.overlays = [ (self: super: rec { - gitweb = super.gitweb.overrideAttrs(old: { - installPhase = old.installPhase + '' - cp -r ${./gitweb/theme} $out/gitweb-theme; - ''; - }); - }) ]; - - deployment.keys = mantisbt.keys; - services.myWebsites.tools.modules = + secrets.keys = mantisbt.keys; + services.websites.tools.modules = gitweb.apache.modules ++ mantisbt.apache.modules; system.extraSystemBuilderCmds = '' @@ -33,8 +23,9 @@ in { ln -s ${mantisbt.webRoot} $out/webapps/${mantisbt.apache.webappName} ''; - services.myWebsites.tools.vhostConfs.git = { + services.websites.tools.vhostConfs.git = { certName = "eldiron"; + addToCerts = true; hosts = ["git.immae.eu" ]; root = gitweb.apache.root; extraConfig = [ @@ -47,7 +38,7 @@ in { '' ]; }; - services.myPhpfpm.poolConfigs = { + services.phpfpm.poolConfigs = { mantisbt = mantisbt.phpFpm.pool; }; };