1
0
Fork 0

add big-parallel to hydra builds

This commit is contained in:
Sebastien Bourdeauducq 2019-04-08 22:35:38 +08:00
parent 0cae8a546c
commit fa5afb3fc4
1 changed files with 8 additions and 2 deletions

View File

@ -89,6 +89,14 @@ ACTION=="add", SUBSYSTEM=="tty", \
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix.buildMachines = [
{
hostName = "localhost";
maxJobs = 4;
system = "x86_64-linux";
supportedFeatures = ["big-parallel"];
}
];
services.hydra = { services.hydra = {
enable = true; enable = true;
package = pkgs.callPackage ./hydra.nix {}; package = pkgs.callPackage ./hydra.nix {};
@ -97,7 +105,6 @@ ACTION=="add", SUBSYSTEM=="tty", \
notificationSender = "hydra@m-labs.hk"; notificationSender = "hydra@m-labs.hk";
minimumDiskFree = 10; # in GB minimumDiskFree = 10; # in GB
minimumDiskFreeEvaluator = 1; minimumDiskFreeEvaluator = 1;
buildMachinesFiles = [];
extraConfig = extraConfig =
'' ''
binary_cache_secret_key_file = /etc/nixos/secret/nixbld.m-labs.hk-1 binary_cache_secret_key_file = /etc/nixos/secret/nixbld.m-labs.hk-1
@ -109,7 +116,6 @@ ACTION=="add", SUBSYSTEM=="tty", \
secret-key-files = /etc/nixos/secret/nixbld.m-labs.hk-1 secret-key-files = /etc/nixos/secret/nixbld.m-labs.hk-1
''; '';
nix.sandboxPaths = ["/opt"]; nix.sandboxPaths = ["/opt"];
nix.maxJobs = 4;
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;