let
- mainCfg = config.services."httpd${httpdName}";
+ mainCfg = config.services.httpd."${httpdName}";
httpd = mainCfg.package.out;
options = {
- services."httpd${httpdName}" = {
+ services.httpd."${httpdName}" = {
enable = mkOption {
type = types.bool;
###### implementation
- config = mkIf config.services."httpd${httpdName}".enable {
+ config = mkIf config.services.httpd."${httpdName}".enable {
assertions = [ { assertion = mainCfg.enableSSL == true
-> mainCfg.sslServerCert != null
environment.systemPackages = [httpd] ++ concatMap (svc: svc.extraPath) allSubservices;
- services."httpd${httpdName}".phpOptions =
+ services.httpd."${httpdName}".phpOptions =
''
; Needed for PHP's mail() function.
sendmail_path = sendmail -t -i