nixos-config/machines/orbi/buildbot-master.nix
2024-07-17 21:48:22 +02:00

42 lines
1,022 B
Nix

{ pkgs, inputs, ... }: {
imports = [
inputs.buildbot-nix.nixosModules.buildbot-master
];
containers.buildbot = {
privateNetwork = false;
autoStart = true;
config = { config, lib, ... }: {
nixpkgs.pkgs = pkgs;
imports = [
../../components/monitor/container.nix
inputs.buildbot-nix.nixosModules.buildbot-master
];
system.stateVersion = "24.05";
services.logrotate.checkConfig = false; # because uid 3000 does not exist in here
services.postgresql = {
settings.port = 5433;
};
services.buildbot-nix.master = {
enable = true;
dbUrl = "postgresql://@:5433/buildbot";
# Domain name under which the buildbot frontend is reachable
domain = "orbi.private:8010";
admins = [ "palo" ];
authBackend = "none";
workersFile = pkgs.writeText "workers.json" ''
[
{ "name": "test", "pass": "password", "cores": 2 }
]
'';
};
};
};
}