summary refs log tree commit diff
path: root/nixos/modules/services/web-servers/apache-httpd/default.nix
diff options
context:
space:
mode:
authorKranium Gikos Mendoza <kranium@gikos.net>2016-02-07 05:27:48 +0800
committerKranium Gikos Mendoza <kranium@gikos.net>2016-05-23 02:02:25 +0800
commit25fbac5b52f80b43c778e16e906f2d5223412707 (patch)
treeff275847b5c012da2547efbe3b61ec6ae3833943 /nixos/modules/services/web-servers/apache-httpd/default.nix
parenta6734bdd2734b96b1cade2c973929856b7283c0e (diff)
downloadnixpkgs-25fbac5b52f80b43c778e16e906f2d5223412707.tar
nixpkgs-25fbac5b52f80b43c778e16e906f2d5223412707.tar.gz
nixpkgs-25fbac5b52f80b43c778e16e906f2d5223412707.tar.bz2
nixpkgs-25fbac5b52f80b43c778e16e906f2d5223412707.tar.lz
nixpkgs-25fbac5b52f80b43c778e16e906f2d5223412707.tar.xz
nixpkgs-25fbac5b52f80b43c778e16e906f2d5223412707.tar.zst
nixpkgs-25fbac5b52f80b43c778e16e906f2d5223412707.zip
mod_auth_mellon: init at 0.12.0
Diffstat (limited to 'nixos/modules/services/web-servers/apache-httpd/default.nix')
-rw-r--r--nixos/modules/services/web-servers/apache-httpd/default.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/services/web-servers/apache-httpd/default.nix b/nixos/modules/services/web-servers/apache-httpd/default.nix
index c23897192b4..9844e3c435d 100644
--- a/nixos/modules/services/web-servers/apache-httpd/default.nix
+++ b/nixos/modules/services/web-servers/apache-httpd/default.nix
@@ -337,6 +337,7 @@ let
         allModules =
           concatMap (svc: svc.extraModulesPre) allSubservices
           ++ map (name: {inherit name; path = "${httpd}/modules/mod_${name}.so";}) apacheModules
+          ++ optional mainCfg.enableMellon { name = "auth_mellon"; path = "${pkgs.apacheHttpdPackages.mod_auth_mellon}/modules/mod_auth_mellon.so"; }
           ++ optional enablePHP { name = "php5"; path = "${php}/modules/libphp5.so"; }
           ++ concatMap (svc: svc.extraModules) allSubservices
           ++ extraForeignModules;
@@ -541,6 +542,12 @@ in
         '';
       };
 
+      enableMellon = mkOption {
+        type = types.bool;
+        default = false;
+        description = "Whether to enable the mod_auth_mellon module.";
+      };
+
       enablePHP = mkOption {
         type = types.bool;
         default = false;
@@ -650,6 +657,7 @@ in
 
         environment =
           optionalAttrs enablePHP { PHPRC = phpIni; }
+          // optionalAttrs mainCfg.enableMellon { LD_LIBRARY_PATH  = "${pkgs.xmlsec}/lib"; }
           // (listToAttrs (concatMap (svc: svc.globalEnvVars) allSubservices));
 
         preStart =