From 4efd078977e5ea20e1104783efc324cba11690bc Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Sun, 11 Dec 2016 15:35:38 +0100 Subject: [PATCH] Only set buildMachinesFiles when nix.buildMachines is defined --- hydra-module.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hydra-module.nix b/hydra-module.nix index 276cb2ae..1bfb9a42 100644 --- a/hydra-module.nix +++ b/hydra-module.nix @@ -165,7 +165,7 @@ in buildMachinesFiles = mkOption { type = types.listOf types.path; - default = [ "/etc/nix/machines" ]; + default = optional (config.nix.buildMachines != []) "/etc/nix/machines"; example = [ "/etc/nix/machines" "/var/lib/hydra/provisioner/machines" ]; description = "List of files containing build machines."; };