Only set buildMachinesFiles when nix.buildMachines is defined

This commit is contained in:
Bas van Dijk 2016-12-11 15:35:38 +01:00
parent de55303197
commit 4efd078977

View file

@ -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.";
};