infra/modules/nixos/buildbot.nix

72 lines
1.9 KiB
Nix
Raw Normal View History

2024-07-24 19:05:26 +10:00
{
config,
inputs,
...
}:
2024-11-21 13:36:17 +10:00
let
buildSystems =
[
config.nixpkgs.hostPlatform.system
]
++ config.nix.settings.extra-platforms
++ builtins.concatLists (map (host: host.systems) config.nix.buildMachines);
in
2023-10-25 11:53:51 +10:00
{
imports = [
inputs.buildbot-nix.nixosModules.buildbot-master
2023-11-21 09:33:18 +10:00
inputs.buildbot-nix.nixosModules.buildbot-worker
2023-10-25 11:53:51 +10:00
];
services.nginx.virtualHosts."buildbot.nix-community.org" = { };
2023-10-25 11:53:51 +10:00
2023-11-21 09:33:18 +10:00
sops.secrets.buildbot-github-oauth-secret = { };
sops.secrets.buildbot-github-app-secret-key = { };
2023-11-21 09:33:18 +10:00
sops.secrets.buildbot-github-webhook-secret = { };
sops.secrets.buildbot-nix-workers = { };
2023-12-24 09:35:53 +10:00
sops.secrets.cachix-auth-token = { };
2023-10-25 11:53:51 +10:00
services.buildbot-nix.master = {
enable = true;
2024-07-24 19:05:26 +10:00
admins = [
"adisbladis"
"ryantm"
"zimbatm"
"zowoq"
];
2024-11-21 13:36:17 +10:00
inherit buildSystems;
2023-10-25 11:53:51 +10:00
domain = "buildbot.nix-community.org";
outputsPath = "/var/www/buildbot/nix-outputs/";
evalMaxMemorySize = 4096;
2024-07-26 09:05:35 +10:00
evalWorkerCount = 32;
jobReportLimit = 0;
2023-11-21 09:33:18 +10:00
workersFile = config.sops.secrets.buildbot-nix-workers.path;
cachix = {
enable = true;
name = "nix-community";
auth.authToken.file = config.sops.secrets.cachix-auth-token.path;
};
2023-10-25 11:53:51 +10:00
github = {
authType.app = {
id = 920387;
secretKeyFile = config.sops.secrets.buildbot-github-app-secret-key.path;
};
2023-11-21 09:33:18 +10:00
webhookSecretFile = config.sops.secrets.buildbot-github-webhook-secret.path;
oauthSecretFile = config.sops.secrets.buildbot-github-oauth-secret.path;
oauthId = "Iv23liN9rjd1Bm3bvYKZ";
2023-10-25 11:53:51 +10:00
topic = "nix-community-buildbot";
};
};
services.buildbot-master = {
title = "Nix Community";
titleUrl = "https://nix-community.org/";
};
2023-11-21 09:33:18 +10:00
sops.secrets.buildbot-nix-worker-password = { };
services.buildbot-nix.worker = {
enable = true;
workerPasswordFile = config.sops.secrets.buildbot-nix-worker-password.path;
};
2023-10-25 11:53:51 +10:00
}