remote builder get info from config

This commit is contained in:
jopejoe1 2024-08-10 11:09:36 +02:00
parent d206479a6d
commit b9381fa897

View file

@ -49,23 +49,29 @@ in
download-attempts = 1; download-attempts = 1;
fallback = true; fallback = true;
}; };
buildMachines = [ buildMachines =
{ let
systems = [ "x86_64-linux" ]; getMainArch =
supportedFeatures = [ name:
"kvm" self.nixosConfigurations.${name}.config.nixpkgs.hostPlatform.system
"big-parallel" or self.nixosConfigurations.${name}.config.nixpkgs.system;
"benchmark" getArchs =
"nixos-test" name:
]; [ (getMainArch name) ]
hostName = "missing.ninja"; ++ self.nixosConfigurations.${name}.config.nix.settings.extra-platforms or [ ];
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUZYQzNPVGRPd0w4V1NDaHhFRENiNS9WbUZYcDZmWUZEM21MMFhFdzFFTDAgcm9vdEBoZXR6bmVyCg=="; in
protocol = "ssh-ng"; [
sshUser = "builder"; {
sshKey = "/root/.ssh/builder"; systems = getArchs "hetzner";
maxJobs = 12; supportedFeatures = self.nixosConfigurations.hetzner.config.nix.settings.system-features;
} hostName = "missing.ninja";
]; publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUZYQzNPVGRPd0w4V1NDaHhFRENiNS9WbUZYcDZmWUZEM21MMFhFdzFFTDAgcm9vdEBoZXR6bmVyCg==";
protocol = "ssh-ng";
sshUser = "builder";
sshKey = "/root/.ssh/builder";
maxJobs = 12;
}
];
distributedBuilds = true; distributedBuilds = true;
package = pkgs.lix; package = pkgs.lix;
registry = lib.mkForce ( registry = lib.mkForce (