diff --git a/nixos/modules/security/acme.nix b/nixos/modules/security/acme.nix index 66bc9d8d5058..7da6666f79c6 100644 --- a/nixos/modules/security/acme.nix +++ b/nixos/modules/security/acme.nix @@ -333,9 +333,7 @@ in chown '${data.user}:${data.group}' *.pem fi - echo post stuff ${data.postRun} - echo done ''; in "+${script}"; diff --git a/nixos/tests/acme.nix b/nixos/tests/acme.nix index 480e95e67c76..617dafee0dce 100644 --- a/nixos/tests/acme.nix +++ b/nixos/tests/acme.nix @@ -63,7 +63,7 @@ in import ./make-test-python.nix { }; }; - webserver = { nodes, config, pkgs, lib, ... }: let parentConfig = config; in { + webserver = { nodes, config, pkgs, lib, ... }: { imports = [ commonConfig ]; networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.nameservers = lib.mkForce [ @@ -97,6 +97,7 @@ in import ./make-test-python.nix { systemd.services."acme-b.example.com" = { wants = [ "acme-finished-b.example.com.target" ]; before = [ "acme-finished-b.example.com.target" ]; + after = [ "nginx.service" ]; }; services.nginx.virtualHosts."b.example.com" = { enableACME = true;