Commit e2106a5d authored by Jörg Thalheim's avatar Jörg Thalheim Committed by zowoq
Browse files

nixos/buildbot: make configurators configurable

parent d9035278
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ let
     schedulers    = [ ${concatStringsSep "," cfg.schedulers} ],
     builders      = [ ${concatStringsSep "," cfg.builders} ],
     services      = [ ${concatStringsSep "," cfg.reporters} ],
     configurators = [ ${concatStringsSep "," cfg.configurators} ],
    )
    for step in [ ${concatStringsSep "," cfg.factorySteps} ]:
      factory.addStep(step)
@@ -79,6 +80,15 @@ in {
        ];
      };

      configurators = mkOption {
        type = types.listOf types.str;
        description = lib.mdDoc "Configurator Steps, see https://docs.buildbot.net/latest/manual/configuration/configurators.html";
        default = [];
        example = [
          "util.JanitorConfigurator(logHorizon=timedelta(weeks=4), hour=12, dayOfWeek=6)"
        ];
      };

      enable = mkOption {
        type = types.bool;
        default = false;