forked from lix-project/hydra
Only set buildMachinesFiles when nix.buildMachines is defined
This commit is contained in:
parent
de55303197
commit
4efd078977
|
@ -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.";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue