Merge pull request #432 from LumiGuide/better-buildMachinesFiles-default

Only set buildMachinesFiles when nix.buildMachines is defined
This commit is contained in:
Eelco Dolstra 2019-09-24 19:00:32 +02:00 committed by GitHub
commit 4223202c99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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