mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 05:00:16 +00:00
nixos/nix-daemon.nix: fix nix.distributedBuilds assertion
This commit is contained in:
parent
ed1423b03c
commit
67b6e56391
|
@ -502,7 +502,7 @@ in
|
||||||
|
|
||||||
assertions = [
|
assertions = [
|
||||||
{
|
{
|
||||||
assertion = (!config.nix.distributedBuilds) && config.nix.buildMachines != [];
|
assertion = config.nix.distributedBuilds || config.nix.buildMachines == [];
|
||||||
message = "You must set `nix.distributedBuilds = true` to use nix.buildMachines";
|
message = "You must set `nix.distributedBuilds = true` to use nix.buildMachines";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue