{ config, lib, ... }:
{
  config = lib.mkIf config.system.webserver.enable {
    security.acme = { 
      acceptTerms = true;
      defaults.email = "contact@${config.domains.p2}";
    };
    environment.persistence."/persist".directories = [
      "/var/lib/acme"
    ];
  };
}
