changed the extraSubservices to a list of functions
svn path=/nixos/trunk/; revision=7931
This commit is contained in:
parent
a17b1d5c5f
commit
e99ffcbe71
@ -588,7 +588,7 @@
|
||||
|
||||
{
|
||||
name = ["services" "httpd" "extraSubservices" "services"];
|
||||
default = false;
|
||||
default = [];
|
||||
description = "
|
||||
Extra subservices to enable in the webserver.
|
||||
";
|
||||
|
@ -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"])
|
||||
)
|
||||
)
|
||||
;
|
||||
|
Loading…
Reference in New Issue
Block a user