Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/continuous-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ See [here](./infrastructure.md#continuous-integration) for details about the har

_Buildbot is the only CI system that supports pull requests from forked repositories._

To enable buildbot add the [`nix-community-buildbot`](https://github.com/topics/nix-community-buildbot) topic to the repository.

_Newly enabled repos are imported into buildbot twice a day, you can also ask the admins to trigger an import manually._
To enable buildbot add the repository to the `repoAllowlist` in this [file](https://github.com/nix-community/infra/blob/master/modules/nixos/buildbot.nix).

#### Hercules

Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 34 additions & 1 deletion modules/nixos/buildbot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,32 @@
...
}:
let
repoAllowlist = [
# keep-sorted start case=no
"nix-community/authentik-nix"
"nix-community/autofirma-nix"
"nix-community/dream2nix"
"nix-community/ethereum.nix"
"nix-community/infra"
"nix-community/lanzaboote"
"nix-community/neovim-nightly-overlay"
"nix-community/nh"
"nix-community/nix-direnv"
"nix-community/nix-eval-jobs"
"nix-community/nix-index"
"nix-community/nix4nvchad"
"nix-community/NixNG"
"nix-community/nixos-facter"
"nix-community/nixos-facter-modules"
"nix-community/nixos-generators"
"nix-community/nixos-images"
"nix-community/nixpkgs-update"
"nix-community/nixpkgs-xr"
"nix-community/nixvim"
"nix-community/srvos"
# keep-sorted end
];

buildSystems = [
pkgs.stdenv.hostPlatform.system
] ++ builtins.concatLists (map (host: host.systems) config.nix.buildMachines);
Expand Down Expand Up @@ -44,6 +70,7 @@ in
inherit buildSystems;
domain = "buildbot.nix-community.org";
outputsPath = "/var/www/buildbot/nix-outputs/";
showTrace = true;
evalMaxMemorySize = 4096;
evalWorkerCount = 32;
jobReportLimit = 0;
Expand All @@ -61,10 +88,16 @@ in
webhookSecretFile = config.sops.secrets.buildbot-github-webhook-secret.path;
oauthSecretFile = config.sops.secrets.buildbot-github-oauth-secret.path;
oauthId = "Iv23liN9rjd1Bm3bvYKZ";
topic = "nix-community-buildbot";
topic = null;
inherit repoAllowlist;
};
};

# reset github project cache when starting service
systemd.services.buildbot-master.preStart = pkgs.lib.mkAfter ''
rm /var/lib/buildbot/github-*.json
'';

sops.secrets.buildbot-effects-nix-community-infra = { };

services.buildbot-nix.master.effects.perRepoSecretFiles = {
Expand Down
1 change: 0 additions & 1 deletion terraform/github-repo-infra.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ resource "github_repository" "infra" {
homepage_url = "https://nix-community.org"

topics = [
"nix-community-buildbot",
"nix-darwin",
"nixos",
"terraform",
Expand Down