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:     ];
  
      services.caddy.extraConfig = concatMapStringsSep "\n" mkVHostConf virtualHosts;
  
      systemd.packages = [ cfg.package ];
      systemd.services.caddy = {
  
negative.code:       type = types.bool;
        description = ''
          Use saved config, if any (and prefer over any specified configuration passed with <literal>--config</literal>).
        '';
      };
  
      globalConfig = mkOption {
        type = types.lines;
        default = "";
        example = ''
          debug
          servers {
            protocol {
              experimental_http3
            }
          }
        '';
        description = ''
          Additional lines of configuration appended to the global config section
          of the <literal>Caddyfile</literal>.
  
          Refer to <link xlink:href="https://caddyserver.com/docs/caddyfile/options#global-options"/>
          for details on supported values.
        '';
      };
  
  