From 67b6e5639126ab6e8ec5d2b303aa9736a626b609 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Thu, 30 Jul 2020 21:38:24 -0500 Subject: [PATCH] nixos/nix-daemon.nix: fix nix.distributedBuilds assertion --- nixos/modules/services/misc/nix-daemon.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix index 971ecdf48e18f..924a007efc6dd 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"; } ];