nixos: Add enablePHP convinence option to services.httpd module to mimic subservices option

Fixes #2699
This commit is contained in:
Chris Farmiloe 2014-05-20 10:50:39 +01:00 committed by Bjørn Forsman
parent c6f9222a22
commit 34890e7c2a

View File

@ -387,7 +387,7 @@ let
'';
enablePHP = any (svc: svc.enablePHP) allSubservices;
enablePHP = mainCfg.enablePHP || any (svc: svc.enablePHP) allSubservices;
# Generate the PHP configuration file. Should probably be factored
@ -531,6 +531,12 @@ in
'';
};
enablePHP = mkOption {
type = types.bool;
default = false;
description = "Whether to enable the PHP module.";
};
phpOptions = mkOption {
type = types.lines;
default = "";