master: add enable option
This commit is contained in:
parent
dc190c7635
commit
72d012ca29
|
@ -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}";
|
||||||
|
|
Loading…
Reference in a new issue