Merge pull request #92415 from matthewbauer/nix-daemon-distributed-builds

Add assertion on distributedBuilds & buildMachines != []
This commit is contained in:
Matthew Bauer 2020-07-30 19:56:23 -05:00 committed by GitHub
commit ed1423b03c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -500,6 +500,13 @@ in
config = {
assertions = [
{
assertion = (!config.nix.distributedBuilds) && config.nix.buildMachines != [];
message = "You must set `nix.distributedBuilds = true` to use nix.buildMachines";
}
];
nix.binaryCachePublicKeys = [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" ];
nix.binaryCaches = [ "https://cache.nixos.org/" ];