anchor.diff:      let
         Caddyfile = pkgs.writeText "Caddyfile" ''
           {
  -          ${optionalString (cfg.email != null) "email ${cfg.email}"}
  -          ${optionalString (cfg.acmeCA != null) "acme_ca ${cfg.acmeCA}"}
  -          log {
  -            ${cfg.logFormat}
  -          }
  +          ${cfg.globalConfig}
           }
           ${cfg.extraConfig}
         '';
  
positive.code:       type = types.bool;
        description = ''
          Use saved config, if any (and prefer over any specified configuration passed with <literal>--config</literal>).
        '';
      };
  
  
negative.code:     ];
  
      services.caddy.extraConfig = concatMapStringsSep "\n" mkVHostConf virtualHosts;
      services.caddy.globalConfig = ''
        ${optionalString (cfg.email != null) "email ${cfg.email}"}
        ${optionalString (cfg.acmeCA != null) "acme_ca ${cfg.acmeCA}"}
        log {
          ${cfg.logFormat}
        }
      '';
  
      systemd.packages = [ cfg.package ];
      systemd.services.caddy = {
  