X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=nixops%2Fmodules%2Fwebsites%2Ftools%2Fgit%2Fdefault.nix;h=495c5eace0c7c6da9db8a8f4dc0d7a2b0be6fe98;hb=f40f5b235b890f46770a22f005f8a0f664cf0562;hp=e7dbd6f5ce074c368a727024a8aebe11ed0e6482;hpb=43dac87fef530d52961cb7df5fdb01aa651d802c;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 e7dbd6f..495c5ea 100644 --- a/nixops/modules/websites/tools/git/default.nix +++ b/nixops/modules/websites/tools/git/default.nix @@ -1,7 +1,6 @@ -{ lib, pkgs, config, myconfig, mylibs, ... }: +{ lib, pkgs, config, myconfig, ... }: let mantisbt = pkgs.callPackage ./mantisbt.nix { - inherit (mylibs) fetchedGithub; inherit (pkgs.webapps) mantisbt_2 mantisbt_2-plugins; env = myconfig.env.tools.mantisbt; }; @@ -14,10 +13,8 @@ in { }; config = lib.mkIf cfg.enable { - security.acme.certs."eldiron".extraDomains."git.immae.eu" = null; - - mySecrets.keys = mantisbt.keys; - services.myWebsites.tools.modules = + secrets.keys = mantisbt.keys; + services.websites.tools.modules = gitweb.apache.modules ++ mantisbt.apache.modules; system.extraSystemBuilderCmds = '' @@ -26,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 = [ @@ -40,7 +38,7 @@ in { '' ]; }; - services.myPhpfpm.poolConfigs = { + services.phpfpm.poolConfigs = { mantisbt = mantisbt.phpFpm.pool; }; };