anchor.diff:        '';
   
         Caddyfile-formatted = pkgs.runCommand "Caddyfile-formatted" { nativeBuildInputs = [ cfg.package ]; } ''
  -        ${cfg.package}/bin/caddy fmt ${Caddyfile} > $out
  +        mkdir -p $out
  +        ${cfg.package}/bin/caddy fmt ${Caddyfile}/Caddyfile > $out/Caddyfile
         '';
       in
  -      if pkgs.stdenv.buildPlatform == pkgs.stdenv.hostPlatform then Caddyfile-formatted else Caddyfile;
  +      "${if pkgs.stdenv.buildPlatform == pkgs.stdenv.hostPlatform then Caddyfile-formatted else Caddyfile}/Caddyfile";
   
     acmeHosts = unique (catAttrs "useACMEHost" acmeVHosts);
   
  
positive.code: 
    configFile =
      let
        Caddyfile = pkgs.writeText "Caddyfile" ''
          {
            ${cfg.globalConfig}
          }
  
negative.code:         for details.
  
          <note><para>
            Any value other than <literal>null</literal> or <literal>caddyfile</literal>
            is only valid when providing your own <option>configFile</option>.
          </para></note>
        '';
      };
  