anchor.diff:          type = types.str;
           description = ''
             The name of the agent.
  -        '';
  -      };
  -
  -      hooksPath = mkOption {
  -        type = types.path;
  -        default = "${pkgs.buildkite-agent}/share/hooks";
  -        defaultText = "${pkgs.buildkite-agent}/share/hooks";
  -        description = ''
  -          Path to the directory storing the hooks.
           '';
         };
   
  
positive.code:             '';
            };
          };
      };
    };
  
  
negative.code: 
  let
    cfg = config.services.buildkite-agent;
  
    mkHookOption = { name, description, example ? null }: {
      inherit name;
      value = mkOption {
        default = null;
        inherit description;
        type = types.nullOr types.lines;
      } // (if example == null then {} else { inherit example; });
    };
    mkHookOptions = hooks: listToAttrs (map mkHookOption hooks);
  
    hooksDir = let
      mkHookEntry = name: value: ''
        cat > $out/${name} <<EOF
        #! ${pkgs.stdenv.shell}
        set -e
        ${value}
        EOF
        chmod 755 $out/${name}
      '';
    in pkgs.runCommand "buildkite-agent-hooks" {} ''
      mkdir $out
      ${concatStringsSep "\n" (mapAttrsToList mkHookEntry (filterAttrs (n: v: v != null) cfg.hooks))}
    '';
  
  in
  
  {
  