mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-04-20 11:34:07 +02:00
remote builder get info from config
This commit is contained in:
parent
d206479a6d
commit
b9381fa897
1 changed files with 23 additions and 17 deletions
|
@ -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 (
|
||||||
|
|
Loading…
Add table
Reference in a new issue