diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix index 971ecdf48e18..924a007efc6d 100644 --- a/nixos/modules/services/misc/nix-daemon.nix +++ b/nixos/modules/services/misc/nix-daemon.nix @@ -502,7 +502,7 @@ in 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"; } ];