Skip to content

Commit

Permalink
Make NIX_REMOTE_SYSTEMS configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Mar 25, 2016
1 parent ed88bba commit 74dfcc8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hydra-module.nix
Expand Up @@ -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 //
Expand Down Expand Up @@ -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.";
};
};

};
Expand Down Expand Up @@ -311,6 +319,7 @@ in
{ ExecStart = "@${cfg.package}/bin/hydra-evaluator hydra-evaluator";
User = "hydra";
Restart = "always";
WorkingDirectory = baseDir;
};
};

Expand Down

0 comments on commit 74dfcc8

Please sign in to comment.