build03: check remote builder ssh connection
This commit is contained in:
parent
de1c033fa5
commit
512dbbf68a
1 changed files with 26 additions and 17 deletions
|
@ -1,26 +1,35 @@
|
|||
{ config, inputs, ... }:
|
||||
let
|
||||
inherit (inputs.self) darwinConfigurations nixosConfigurations;
|
||||
|
||||
machines = [
|
||||
darwinConfigurations.darwin02
|
||||
nixosConfigurations.build04
|
||||
];
|
||||
in
|
||||
{
|
||||
sops.secrets.id_buildfarm = { };
|
||||
|
||||
nix.distributedBuilds = true;
|
||||
nix.buildMachines =
|
||||
map
|
||||
(x: {
|
||||
hostName = "${x.config.networking.hostName}.nix-community.org";
|
||||
maxJobs = x.config.nix.settings.max-jobs;
|
||||
protocol = "ssh-ng";
|
||||
sshKey = config.sops.secrets.id_buildfarm.path;
|
||||
sshUser = "nix";
|
||||
systems = [
|
||||
x.config.nixpkgs.hostPlatform.system
|
||||
] ++ (x.config.nix.settings.extra-platforms or [ ]);
|
||||
supportedFeatures = x.config.nix.settings.system-features;
|
||||
})
|
||||
[
|
||||
darwinConfigurations.darwin02
|
||||
nixosConfigurations.build04
|
||||
];
|
||||
nix.buildMachines = map (x: {
|
||||
hostName = "${x.config.networking.hostName}.nix-community.org";
|
||||
maxJobs = x.config.nix.settings.max-jobs;
|
||||
protocol = "ssh-ng";
|
||||
sshKey = config.sops.secrets.id_buildfarm.path;
|
||||
sshUser = "nix";
|
||||
systems = [
|
||||
x.config.nixpkgs.hostPlatform.system
|
||||
] ++ (x.config.nix.settings.extra-platforms or [ ]);
|
||||
supportedFeatures = x.config.nix.settings.system-features;
|
||||
}) machines;
|
||||
|
||||
services.telegraf.extraConfig.inputs.net_response = map (x: {
|
||||
protocol = "tcp";
|
||||
address = "${x.config.networking.hostName}.nix-community.org:22";
|
||||
send = "SSH-2.0-Telegraf";
|
||||
expect = "SSH-2.0";
|
||||
tags.host = "${x.config.networking.hostName}.nix-community.org";
|
||||
tags.org = "nix-community";
|
||||
timeout = "10s";
|
||||
}) machines;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue