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

Fixes #2699
This commit is contained in:
Chris Farmiloe
2014-08-03 21:11:45 +02:00
committed by Bjørn Forsman
parent c6f9222a22
commit 34890e7c2a
@@ -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 # 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 { phpOptions = mkOption {
type = types.lines; type = types.lines;
default = ""; default = "";