chore(nix-builders): remove legacy system field

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
raito 2024-07-19 15:54:51 +02:00
parent 7cafac3125
commit c49e591ae5

View file

@ -5,6 +5,7 @@
, ...
}:
let
inherit (lib) filterAttrs;
cfg = config.services.buildbot-nix.coordinator;
in
{
@ -223,7 +224,7 @@ in
nix_eval_max_memory_size=${builtins.toJSON cfg.evalMaxMemorySize},
nix_eval_worker_count=${if cfg.evalWorkerCount == null then "None" else builtins.toString cfg.evalWorkerCount},
nix_supported_systems=${builtins.toJSON cfg.buildSystems},
nix_builders=${builtins.toJSON cfg.buildMachines},
nix_builders=${builtins.toJSON (map (b: filterAttrs (n: _: n != "system") b) cfg.buildMachines)},
# Signing key file must be available on the workers and readable.
signing_keyfile=${if cfg.signingKeyFile == null then "None" else builtins.toJSON cfg.signingKeyFile},
binary_cache_config=${if (!cfg.binaryCache.enable) then "None" else builtins.toJSON {