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