diff options
| author | makefu <github@syntax-fehler.de> | 2015-12-22 19:36:19 +0100 | 
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2015-12-22 19:36:22 +0100 | 
| commit | 7143ab375b378dc7ce947a0fbaba5ae25c9afb3a (patch) | |
| tree | 74a5ee79e140a6ac034c0fe4ff53abc6eb8a3526 /shared | |
| parent | e93e886777776f30d2ad3ea114ce06525ebf20ef (diff) | |
mv makefu->krebs 3 buildbot
Diffstat (limited to 'shared')
| -rw-r--r-- | shared/1systems/wolf.nix | 2 | ||||
| -rw-r--r-- | shared/2configs/buildbot-standalone.nix | 31 | ||||
| -rw-r--r-- | shared/2configs/cac-ci.nix | 11 | 
3 files changed, 32 insertions, 12 deletions
| diff --git a/shared/1systems/wolf.nix b/shared/1systems/wolf.nix index fba4bd9..f05356f 100644 --- a/shared/1systems/wolf.nix +++ b/shared/1systems/wolf.nix @@ -11,7 +11,7 @@ in      ../2configs/collectd-base.nix      ../2configs/shack-nix-cacher.nix      ../2configs/shack-drivedroid.nix -    ../2configs/cac-ci.nix +    ../2configs/buildbot-standalone.nix      ../2configs/graphite.nix    ];    # use your own binary cache, fallback use cache.nixos.org (which is used by diff --git a/shared/2configs/buildbot-standalone.nix b/shared/2configs/buildbot-standalone.nix new file mode 100644 index 0000000..adf44ca --- /dev/null +++ b/shared/2configs/buildbot-standalone.nix @@ -0,0 +1,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>}"; }; +  }; +} diff --git a/shared/2configs/cac-ci.nix b/shared/2configs/cac-ci.nix deleted file mode 100644 index 06cce27..0000000 --- a/shared/2configs/cac-ci.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ config, lib, pkgs, ... }: - -with lib; -{ -  environment.systemPackages = with pkgs;[ -    get -    cac -    cacpanel -    jq -  ]; -} | 
