2024-07-17 12:47:52 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
2024-10-05 16:14:39 +00:00
|
|
|
nodes,
|
2024-07-17 12:47:52 +00:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
networking.hostName = "buildbot";
|
|
|
|
# TODO: make it the default
|
|
|
|
networking.domain = "infra.forkos.org";
|
|
|
|
|
|
|
|
bagel.sysadmin.enable = true;
|
|
|
|
# Buildbot is proxied.
|
|
|
|
bagel.raito.v6-proxy-awareness.enable = true;
|
|
|
|
bagel.hardware.raito-vm = {
|
|
|
|
enable = true;
|
|
|
|
networking = {
|
|
|
|
nat-lan-mac = "BC:24:11:E7:42:8B";
|
|
|
|
wan = {
|
|
|
|
address = "2001:bc8:38ee:100:1000::50/64";
|
|
|
|
mac = "BC:24:11:C9:BA:6C";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
bagel.services.buildbot = {
|
|
|
|
enable = true;
|
|
|
|
domain = "buildbot.forkos.org";
|
2024-10-05 16:14:39 +00:00
|
|
|
gerrit =
|
|
|
|
let
|
|
|
|
cfgGerrit = nodes.gerrit01.config.bagel.services.gerrit;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
domain = cfgGerrit.canonicalDomain;
|
|
|
|
port = cfgGerrit.port;
|
|
|
|
username = "buildbot";
|
|
|
|
};
|
2024-10-18 11:47:18 +00:00
|
|
|
cors.allowedOrigins = [
|
|
|
|
"https://*.forkos.org"
|
|
|
|
];
|
2024-10-05 16:14:39 +00:00
|
|
|
projects = [
|
|
|
|
"buildbot-test"
|
|
|
|
"nixpkgs"
|
|
|
|
"infra"
|
|
|
|
];
|
2024-12-14 14:17:22 +00:00
|
|
|
builders = [ "builder-4" ];
|
2024-07-17 12:47:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
deployment.targetHost = "buildbot.infra.forkos.org";
|
|
|
|
}
|