diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2023-09-24 04:21:39 +0200 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2023-10-02 09:11:39 +1000 |
commit | f8be2c43b4b1c1aec02f741ae909696b8410ebc1 (patch) | |
tree | a1f6b1cf7ab56305aac740b8119540e2569f851d | |
parent | e2106a5dbbf7001a8910c5ef5e8b2059a8bc683c (diff) | |
download | nixlib-f8be2c43b4b1c1aec02f741ae909696b8410ebc1.tar nixlib-f8be2c43b4b1c1aec02f741ae909696b8410ebc1.tar.gz nixlib-f8be2c43b4b1c1aec02f741ae909696b8410ebc1.tar.bz2 nixlib-f8be2c43b4b1c1aec02f741ae909696b8410ebc1.tar.lz nixlib-f8be2c43b4b1c1aec02f741ae909696b8410ebc1.tar.xz nixlib-f8be2c43b4b1c1aec02f741ae909696b8410ebc1.tar.zst nixlib-f8be2c43b4b1c1aec02f741ae909696b8410ebc1.zip |
nixos/buildbot: allow to prepend imports
-rw-r--r-- | nixos/modules/services/continuous-integration/buildbot/master.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nixos/modules/services/continuous-integration/buildbot/master.nix b/nixos/modules/services/continuous-integration/buildbot/master.nix index 2b419ec91345..9a89745055f0 100644 --- a/nixos/modules/services/continuous-integration/buildbot/master.nix +++ b/nixos/modules/services/continuous-integration/buildbot/master.nix @@ -15,6 +15,7 @@ let defaultMasterCfg = pkgs.writeText "master.cfg" '' from buildbot.plugins import * + ${cfg.extraImports} factory = util.BuildFactory() c = BuildmasterConfig = dict( workers = [${concatStringsSep "," cfg.workers}], @@ -101,6 +102,13 @@ in { default = "c['buildbotNetUsageData'] = None"; }; + extraImports = mkOption { + type = types.str; + description = lib.mdDoc "Extra python imports to prepend to master.cfg"; + default = ""; + example = "from buildbot.process.project import Project"; + }; + masterCfg = mkOption { type = types.path; description = lib.mdDoc "Optionally pass master.cfg path. Other options in this configuration will be ignored."; |