summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/buildbot/master.nix
blob: 9598f6fa00a93feccc7a6de6afbf40ab21aba844 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{buildbot-nix,...}:
let
  #domain = "buildbot.krebsco.de";
  domain = "build.hotdog.r";
in {
  imports = [
    buildbot-nix.nixosModules.buildbot-master
  ];

  #services.nginx.virtualHosts."${domain}" = {
  #  enableACME = true;
  #  forceSSL = true;
  #};


  services.buildbot-nix.master = {
    enable = true;
    admins = [ "makefu" ];
    buildSystems = [ "x86_64-linux" "aarch64-linux" ];
    inherit domain;
    evalMaxMemorySize = "4096";
    evalWorkerCount = 16;
    workersFile = "/var/src/secrets/buildbot/nix-workers";
    github = {
      tokenFile = "/var/src/secrets/buildbot/github-token";
      webhookSecretFile = "/var/src/secrets/buildbot/github-webhook-secret";
      oauthSecretFile = "/var/src/secrets/buildbot/github-oauth-secret";
      oauthId = "Ov23lizFP7t7qoE9FuDA";
      user = "krebs-bob";
      topic = "buildbot";
    };
  };
}