From 74dfcc84e9c2a40765c78ebd82650af55e027501 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 25 Mar 2016 15:41:38 +0100 Subject: [PATCH] Make NIX_REMOTE_SYSTEMS configurable --- hydra-module.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hydra-module.nix b/hydra-module.nix index 3ab63fcd..a7cc9ce0 100644 --- a/hydra-module.nix +++ b/hydra-module.nix @@ -20,6 +20,7 @@ let { NIX_REMOTE = "daemon"; SSL_CERT_FILE = "/etc/ssl/certs/ca-certificates.crt"; # Remove in 16.03 PGPASSFILE = "${baseDir}/pgpass"; + NIX_REMOTE_SYSTEMS = concatStringsSep ":" cfg.buildMachinesFiles; } // hydraEnv // cfg.extraEnv; serverEnv = env // @@ -149,6 +150,13 @@ in default = "/nix/var/nix/gcroots/hydra"; description = "Directory that holds Hydra garbage collector roots."; }; + + buildMachinesFiles = mkOption { + type = types.list types.path; + default = []; + example = [ "/etc/nix/machines" "/var/lib/hydra/provisioner/machines" ]; + description = "List of files containing build machines."; + }; }; }; @@ -311,6 +319,7 @@ in { ExecStart = "@${cfg.package}/bin/hydra-evaluator hydra-evaluator"; User = "hydra"; Restart = "always"; + WorkingDirectory = baseDir; }; };