anchor.diff:        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.
         '';
       };
   
  
positive.code:     let
        Caddyfile = pkgs.writeText "Caddyfile" ''
          {
            ${optionalString (cfg.email != null) "email ${cfg.email}"}
            ${optionalString (cfg.acmeCA != null) "acme_ca ${cfg.acmeCA}"}
            log {
              ${cfg.logFormat}
            }
          }
          ${cfg.extraConfig}
        '';
  
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 = {
  