lol

nixos/buildbot: allow to prepend imports

authored by

Jörg Thalheim and committed by
zowoq
f8be2c43 e2106a5d

+8
+8
nixos/modules/services/continuous-integration/buildbot/master.nix
··· 15 15 16 16 defaultMasterCfg = pkgs.writeText "master.cfg" '' 17 17 from buildbot.plugins import * 18 + ${cfg.extraImports} 18 19 factory = util.BuildFactory() 19 20 c = BuildmasterConfig = dict( 20 21 workers = [${concatStringsSep "," cfg.workers}], ··· 99 100 type = types.str; 100 101 description = lib.mdDoc "Extra configuration to append to master.cfg"; 101 102 default = "c['buildbotNetUsageData'] = None"; 103 + }; 104 + 105 + extraImports = mkOption { 106 + type = types.str; 107 + description = lib.mdDoc "Extra python imports to prepend to master.cfg"; 108 + default = ""; 109 + example = "from buildbot.process.project import Project"; 102 110 }; 103 111 104 112 masterCfg = mkOption {