X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FConfig%2FNix.git;a=blobdiff_plain;f=modules%2Fprivate%2Fhttpd-service-builder.nix;h=d049202c1d59c5c9e8b496240cd38f4cb7b83122;hp=0f0fe2244564ecdb97e4ed83271b36096360565a;hb=daf64e3f7de98e4267823d14fa34891b27b5f657;hpb=017cb76f3355369a57cee7e851e013fbe7b265b7 diff --git a/modules/private/httpd-service-builder.nix b/modules/private/httpd-service-builder.nix index 0f0fe22..d049202 100644 --- a/modules/private/httpd-service-builder.nix +++ b/modules/private/httpd-service-builder.nix @@ -7,7 +7,7 @@ with lib; let - mainCfg = config.services."httpd${httpdName}"; + mainCfg = config.services.httpd."${httpdName}"; httpd = mainCfg.package.out; @@ -438,7 +438,7 @@ in options = { - services."httpd${httpdName}" = { + services.httpd."${httpdName}" = { enable = mkOption { type = types.bool; @@ -655,7 +655,7 @@ in ###### implementation - config = mkIf config.services."httpd${httpdName}".enable { + config = mkIf config.services.httpd."${httpdName}".enable { assertions = [ { assertion = mainCfg.enableSSL == true -> mainCfg.sslServerCert != null @@ -679,7 +679,7 @@ in 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