summaryrefslogtreecommitdiffstats
path: root/shared/2configs/buildbot-standalone.nix
blob: adf44cada26783928e33ec3d94f193c3ac58cf0a (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
{ lib, config, pkgs, ... }:
let
    pkgs-unst = import (fetchTarball https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz) {};
in {
  nixpkgs.config.packageOverrides = pkgs: {
    buildbot = pkgs-unst.buildbot;
    buildbot-slave = pkgs-unst.buildbot-slave;
  };
  networking.firewall.allowedTCPPorts = [ 8010 ];
  krebs.buildbot.master = {
    enable = true;
    irc = {
      enable = true;
      server = "cd.retiolum";
      channel = "retiolum";
      allowForce = true;
    };
    extraConfig = ''
      c['buildbotURL']  = "http://${config.krebs.build.host.name}:8010/"
    '';
  };

  krebs.buildbot.slave = {
    enable = true;
    masterhost = "localhost";
    username = "testslave";
    password = "krebspass";
    packages = with pkgs;[ git nix ];
    extraEnviron = { NIX_PATH="nixpkgs=${toString <nixpkgs>}"; };
  };
}