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:         for details.
  
          <note><para>
            Any value other than <literal>caddyfile</literal> is only valid when
            providing your own <option>configFile</option>.
          </para></note>
        '';
      };
  
negative.code:       serviceConfig = {
          # https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStart=
          # If the empty string is assigned to this option, the list of commands to start is reset, prior assignments of this option will have no effect.
          ExecStart = [ "" ''${cfg.package}/bin/caddy run --config ${cfg.configFile} ${optionalString (cfg.adapter != null) "--adapter ${cfg.adapter}"} ${optionalString cfg.resume "--resume"}'' ];
          ExecReload = [ "" ''${cfg.package}/bin/caddy reload --config ${cfg.configFile} ${optionalString (cfg.adapter != null) "--adapter ${cfg.adapter}"} --force'' ];
          ExecStartPre = ''${cfg.package}/bin/caddy validate --config ${cfg.configFile} ${optionalString (cfg.adapter != null) "--adapter ${cfg.adapter}"}'';
          User = cfg.user;
          Group = cfg.group;
          ReadWriteDirectories = cfg.dataDir;
  