infra/services/baremetal-builder/assignments.nix

21 lines
715 B
Nix
Raw Normal View History

# This file contains information on which builder(s) are providing how many
# job slots and providing which nix features
let
genBuilders = { offset ? 0, count, f }: builtins.genList (x: rec { name = "builder-${toString (offset + x)}"; value = f name; }) count;
in builtins.listToAttrs (
2024-12-09 09:28:20 +00:00
genBuilders { offset = 4; count = 2; f = name: {
cores = 8;
max-jobs = 8;
supported-features = [ "kvm" "nixos-test" ];
required-features = [ ];
}; }
++
2024-12-09 09:28:20 +00:00
# This builder is exclusively for big-parallel
genBuilders { offset = 10; count = 1; f = name: {
cores = 20;
max-jobs = 1;
supported-features = [ "kvm" "nixos-test" "big-parallel" ];
required-features = [ "big-parallel" ];
}; }
)