anchor.diff:        '';
   
         postStart = ''
  -        until [[ $(${pkgs.curl.bin}/bin/curl -L -s --head -w '\n%{http_code}' http://${cfg.listenAddress}:${toString cfg.port}${cfg.prefix} | tail -n1) =~ ^(200|403)$ ]]; do
  +        until [[ $(${pkgs.curl.bin}/bin/curl -L -s --head -w '\n%{http_code}' ${jenkinsUrl} | tail -n1) =~ ^(200|403)$ ]]; do
             sleep 1
           done
         '';
  
positive.code:           Additional command line arguments to pass to the Java run time (as opposed to Jenkins).
          '';
        };
      };
    };
  
    config = mkIf cfg.enable {
      # server references the dejavu fonts
      environment.systemPackages = [
        pkgs.dejavu_fonts
      ];
  
      users.groups = optionalAttrs (cfg.group == "jenkins") {
        jenkins.gid = config.ids.gids.jenkins;
  
negative.code: with lib;
  let
    cfg = config.services.jenkins;
    jenkinsUrl = "http://${cfg.listenAddress}:${toString cfg.port}${cfg.prefix}";
  in {
    options = {
      services.jenkins = {
  