3
0
Fork 0
forked from mirrors/nixpkgs

changed the extraSubservices to a list of functions

svn path=/nixos/trunk/; revision=7931
This commit is contained in:
Martin Bravenboer 2007-02-20 15:57:15 +00:00
parent a17b1d5c5f
commit e99ffcbe71
2 changed files with 4 additions and 4 deletions

View file

@ -588,7 +588,7 @@
{
name = ["services" "httpd" "extraSubservices" "services"];
default = false;
default = [];
description = "
Extra subservices to enable in the webserver.
";

View file

@ -19,7 +19,6 @@ let
logDir = getCfg "logDir";
stateDir = getCfg "stateDir";
enableSSL = false;
webServer = import ../services/apache-httpd {
inherit (pkgs) stdenv apacheHttpd coreutils;
@ -56,8 +55,9 @@ let
)
++
(optional (getCfgs ["extraSubservices" "enable"]) (
(getCfgs ["extraSubservices" "services"]) webServer pkgs
(optional (getCfgs ["extraSubservices" "enable"])
(map (service : service webServer pkgs)
(getCfgs ["extraSubservices" "services"])
)
)
;