From fa5afb3fc460b47172a8eaa3162c758997e60aaa Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Mon, 8 Apr 2019 22:35:38 +0800 Subject: [PATCH] add big-parallel to hydra builds --- nixbld-etc-nixos/configuration.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/nixbld-etc-nixos/configuration.nix b/nixbld-etc-nixos/configuration.nix index 8623b0d..b3f0b22 100644 --- a/nixbld-etc-nixos/configuration.nix +++ b/nixbld-etc-nixos/configuration.nix @@ -89,6 +89,14 @@ ACTION=="add", SUBSYSTEM=="tty", \ nixpkgs.config.allowUnfree = true; + nix.buildMachines = [ + { + hostName = "localhost"; + maxJobs = 4; + system = "x86_64-linux"; + supportedFeatures = ["big-parallel"]; + } + ]; services.hydra = { enable = true; package = pkgs.callPackage ./hydra.nix {}; @@ -97,7 +105,6 @@ ACTION=="add", SUBSYSTEM=="tty", \ notificationSender = "hydra@m-labs.hk"; minimumDiskFree = 10; # in GB minimumDiskFreeEvaluator = 1; - buildMachinesFiles = []; extraConfig = '' 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 ''; nix.sandboxPaths = ["/opt"]; - nix.maxJobs = 4; virtualisation.libvirtd.enable = true;