nixos/tests/php-pcre: replace usage of deprecated services.httpd.extraSubservices

This commit is contained in:
Aaron Andersen 2019-08-11 10:03:28 -04:00
parent ac4327c025
commit d1129a5688

View file

@ -8,11 +8,8 @@ import ./make-test.nix ({ ...}: {
services.httpd = {
enable = true;
adminAddr = "please@dont.contact";
extraSubservices = lib.singleton {
function = f: {
enablePHP = true;
phpOptions = "pcre.jit = true";
extraConfig =
let
testRoot = pkgs.writeText "index.php"
@ -32,8 +29,6 @@ import ./make-test.nix ({ ...}: {
'';
};
};
};
};
testScript = { ... }:
''
$machine->waitForUnit('httpd.service');