nixos/buildbot-master: allow merging extraConfig and extraImports

Allow multiple definitions to be concatenated together with a new line.
This commit is contained in:
James Atkins 2024-10-12 11:56:07 -05:00
parent 5633bcff0c
commit f579c189a7

View File

@ -93,13 +93,13 @@ in {
};
extraConfig = lib.mkOption {
type = lib.types.str;
type = lib.types.lines;
description = "Extra configuration to append to master.cfg";
default = "c['buildbotNetUsageData'] = None";
};
extraImports = lib.mkOption {
type = lib.types.str;
type = lib.types.lines;
description = "Extra python imports to prepend to master.cfg";
default = "";
example = "from buildbot.process.project import Project";