feat: add builder

This commit is contained in:
Moritz Böhme 2023-08-28 20:09:39 +02:00
parent cf6a46d8ae
commit c629518866
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
5 changed files with 35 additions and 23 deletions

View file

@ -69,5 +69,24 @@ in
};
};
};
nix.buildMachines = [{
hostName = "builder";
systems = [ "aarch64-linux" "x86_64-linux" ];
protocol = "ssh-ng";
maxJobs = 1;
speedFactor = 1;
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
mandatoryFeatures = [ ];
}];
nix.distributedBuilds = true;
# optional, useful when the builder has a faster internet connection than yours
nix.extraOptions = ''
builders-use-substitutes = true
'';
age.secrets."ssh-builder" = {
file = ../../secrets/ssh-builder.age;
owner = "0";
path = "/root/.ssh/config";
};
};
}