Skip to content

Commit

Permalink
Merge pull request #92415 from matthewbauer/nix-daemon-distributed-bu…
Browse files Browse the repository at this point in the history
…ilds

Add assertion on distributedBuilds & buildMachines != []
  • Loading branch information
matthewbauer authored Jul 31, 2020
2 parents d861d3b + 250885d commit ed1423b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nixos/modules/services/misc/nix-daemon.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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/" ];

Expand Down

0 comments on commit ed1423b

Please sign in to comment.