chore(nix-builders): remove legacy system
field
Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
parent
98c5d82bf8
commit
22a58ce038
|
@ -5,6 +5,7 @@
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
inherit (lib) filterAttrs;
|
||||||
cfg = config.services.buildbot-nix.coordinator;
|
cfg = config.services.buildbot-nix.coordinator;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
@ -246,7 +247,7 @@ in
|
||||||
prometheus_config=${if (!cfg.prometheus.enable) then "None" else builtins.toJSON {
|
prometheus_config=${if (!cfg.prometheus.enable) then "None" else builtins.toJSON {
|
||||||
inherit (cfg.prometheus) address port;
|
inherit (cfg.prometheus) address port;
|
||||||
}},
|
}},
|
||||||
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 key file must be available on the workers and readable.
|
||||||
signing_keyfile=${if cfg.signingKeyFile == null then "None" else builtins.toJSON cfg.signingKeyFile},
|
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 {
|
binary_cache_config=${if (!cfg.binaryCache.enable) then "None" else builtins.toJSON {
|
||||||
|
|
Loading…
Reference in a new issue