mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixos/nix-daemon.nix: assert distributedBuilds and buildMachines!=[]
Without distributedBuilds, you can’t use buildMachines flag. Fixes #56593
This commit is contained in:
parent
4855aa62fa
commit
250885d0ca
1 changed files with 7 additions and 0 deletions
|
@ -439,6 +439,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/" ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue