From 72d012ca2907b9800e4e363a4ba22ae0d6526cee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 10 Sep 2023 09:00:42 +0000 Subject: [PATCH] master: add enable option --- nix/master.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/master.nix b/nix/master.nix index 969aab2..b3940c2 100644 --- a/nix/master.nix +++ b/nix/master.nix @@ -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}";