2023-09-24 07:08:03 +00:00
|
|
|
(import ./lib.nix) {
|
|
|
|
name = "from-nixos";
|
|
|
|
nodes = {
|
|
|
|
# `self` here is set by using specialArgs in `lib.nix`
|
2023-10-27 07:58:10 +00:00
|
|
|
node1 = { self, pkgs, ... }: {
|
2023-09-24 07:08:03 +00:00
|
|
|
imports = [
|
|
|
|
self.nixosModules.buildbot-master
|
|
|
|
];
|
|
|
|
services.buildbot-nix.master = {
|
|
|
|
enable = true;
|
|
|
|
domain = "buildbot2.thalheim.io";
|
2023-10-27 07:58:10 +00:00
|
|
|
workersFile = pkgs.writeText "workers.json" ''
|
|
|
|
[
|
|
|
|
{ "name": "eve", "pass": "XXXXXXXXXXXXXXXXXXXX", "cores": 16 }
|
|
|
|
]
|
|
|
|
'';
|
2023-09-24 07:08:03 +00:00
|
|
|
github = {
|
2023-10-27 07:58:10 +00:00
|
|
|
tokenFile = pkgs.writeText "github-token" "ghp_000000000000000000000000000000000000";
|
|
|
|
webhookSecretFile = pkgs.writeText "webhookSecret" "00000000000000000000";
|
|
|
|
oauthSecretFile = pkgs.writeText "oauthSecret" "ffffffffffffffffffffffffffffffffffffffff";
|
2023-09-24 07:08:03 +00:00
|
|
|
oauthId = "aaaaaaaaaaaaaaaaaaaa";
|
2023-10-12 13:20:50 +00:00
|
|
|
user = "mic92-buildbot";
|
|
|
|
admins = [ "Mic92" ];
|
2023-09-24 07:08:03 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
# This is the test code that will check if our service is running correctly:
|
|
|
|
testScript = ''
|
|
|
|
start_all()
|
|
|
|
# wait for our service to start
|
|
|
|
node1.wait_for_unit("buildbot-master")
|
|
|
|
'';
|
|
|
|
}
|