diff options
Diffstat (limited to 'hosts/p-body/buildMachines.nix')
| -rw-r--r-- | hosts/p-body/buildMachines.nix | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/hosts/p-body/buildMachines.nix b/hosts/p-body/buildMachines.nix index 5facb2d..54f8bf0 100644 --- a/hosts/p-body/buildMachines.nix +++ b/hosts/p-body/buildMachines.nix @@ -1,18 +1,31 @@ -{config, ...}: let +{ + config, + self, + ... +}: let inherit (config.networking) hostName; in { + age.secrets = { + "${hostName}2atlas" = { + file = "${self}/secrets/hosts/${hostName}/${hostName}2atlas.age"; + mode = "600"; + owner = config.users.users.hydra-queue-runner.name; + inherit (config.users.users.hydra-queue-runner) group; + }; + }; + nix = { buildMachines = [ { hostName = "localhost"; - speedFactor = -1; + speedFactor = 75; supportedFeatures = ["big-parallel" "benchmark" "kvm" "nixos-test"]; system = "x86_64-linux"; } { hostName = "atlas"; maxJobs = 4; - speedFactor = 2; + speedFactor = 100; sshUser = "bob"; sshKey = config.age.secrets."${hostName}2atlas".path; supportedFeatures = ["benchmark" "big-parallel" "gccarch-armv8-a" "kvm" "nixos-test"]; |
