1{ config, lib, ... }:
2let
3 cfg = config.py.services.buildbot.worker;
4in
5{
6 options.py.services.buildbot.worker = {
7 enable = lib.mkEnableOption "buildbot worker";
8 passwordFile = lib.mkOption {
9 type = lib.types.path;
10 description = "Password file for the worker";
11 default = null;
12 };
13 };
14 config.services.buildbot-nix.worker = lib.mkIf cfg.enable {
15 enable = true;
16 name = config.networking.hostName;
17 masterUrl = "tcp:host=marvin:port=6915";
18 workerPasswordFile = cfg.passwordFile;
19 };
20}