master: add enable option

This commit is contained in:
Jörg Thalheim 2023-09-10 09:00:42 +00:00
parent dc190c7635
commit 72d012ca29

View file

@ -9,6 +9,7 @@ in
{
options = {
services.buildbot-nix.master = {
enable = lib.mkEnableOption "buildbot-master";
port = lib.mkOption {
type = lib.types.int;
default = 1810;
@ -74,7 +75,7 @@ in
};
};
};
config = {
config = lib.mkIf cfg.enable {
services.buildbot-master = {
enable = true;
masterCfg = "${../buildbot_nix/master.py}";