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,15 +49,21 @@ in
|
||||||
download-attempts = 1;
|
download-attempts = 1;
|
||||||
fallback = true;
|
fallback = true;
|
||||||
};
|
};
|
||||||
buildMachines = [
|
buildMachines =
|
||||||
|
let
|
||||||
|
getMainArch =
|
||||||
|
name:
|
||||||
|
self.nixosConfigurations.${name}.config.nixpkgs.hostPlatform.system
|
||||||
|
or self.nixosConfigurations.${name}.config.nixpkgs.system;
|
||||||
|
getArchs =
|
||||||
|
name:
|
||||||
|
[ (getMainArch name) ]
|
||||||
|
++ self.nixosConfigurations.${name}.config.nix.settings.extra-platforms or [ ];
|
||||||
|
in
|
||||||
|
[
|
||||||
{
|
{
|
||||||
systems = [ "x86_64-linux" ];
|
systems = getArchs "hetzner";
|
||||||
supportedFeatures = [
|
supportedFeatures = self.nixosConfigurations.hetzner.config.nix.settings.system-features;
|
||||||
"kvm"
|
|
||||||
"big-parallel"
|
|
||||||
"benchmark"
|
|
||||||
"nixos-test"
|
|
||||||
];
|
|
||||||
hostName = "missing.ninja";
|
hostName = "missing.ninja";
|
||||||
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUZYQzNPVGRPd0w4V1NDaHhFRENiNS9WbUZYcDZmWUZEM21MMFhFdzFFTDAgcm9vdEBoZXR6bmVyCg==";
|
publicHostKey = "c3NoLWVkMjU1MTkgQUFBQUMzTnphQzFsWkRJMU5URTVBQUFBSUZYQzNPVGRPd0w4V1NDaHhFRENiNS9WbUZYcDZmWUZEM21MMFhFdzFFTDAgcm9vdEBoZXR6bmVyCg==";
|
||||||
protocol = "ssh-ng";
|
protocol = "ssh-ng";
|
||||||
|
|
Loading…
Add table
Reference in a new issue