diff --git a/modules/services/web-servers/apache-httpd/default.nix b/modules/services/web-servers/apache-httpd/default.nix index 76b2bea4e9fe..7e3067510d3f 100644 --- a/modules/services/web-servers/apache-httpd/default.nix +++ b/modules/services/web-servers/apache-httpd/default.nix @@ -44,9 +44,9 @@ let rec { config = if res ? options then - addDefaultOptionValues res.options svc.config + addDefaultOptionValues res.options svc.configuration else - svc.config; + svc.configuration; res = svc // svc.function {inherit config pkgs serverInfo servicesPath;}; }.res; in map f defs; diff --git a/modules/services/web-servers/apache-httpd/services.nix b/modules/services/web-servers/apache-httpd/services.nix index f8d95f955cfa..a8b69be636ea 100644 --- a/modules/services/web-servers/apache-httpd/services.nix +++ b/modules/services/web-servers/apache-httpd/services.nix @@ -53,14 +53,12 @@ let serviceType = mkOption { - default = ""; description = "Obsolete name of ."; # serviceType is the old name of serviceName. apply = x: config.serviceName; }; serviceName = mkOption { - default = ""; example = "trac"; description = " (Deprecated) @@ -90,7 +88,7 @@ let f; }; - config = mkOption { + configuration = mkOption { default = {}; description = " (Deprecated) Define option values of the current sub-service. diff --git a/tests/subversion.nix b/tests/subversion.nix index 82ada4576ebd..5fed5ba77c42 100644 --- a/tests/subversion.nix +++ b/tests/subversion.nix @@ -56,9 +56,11 @@ rec { services.httpd.adminAddr = "e.dolstra@tudelft.nl"; services.httpd.extraSubservices = [ { serviceType = "subversion"; - urlPrefix = ""; - dataDir = "/data/subversion"; - userCreationDomain = "192.168.0.0/16"; + configuration = { + urlPrefix = ""; + dataDir = "/data/subversion"; + userCreationDomain = "192.168.0.0/16"; + }; } ]; nixpkgs.config.packageOverrides = overrides;