From 5a566004a2b12c3d91bf0acdb704f1b40770c28f Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Tue, 3 Jul 2018 14:11:00 +0200 Subject: [PATCH] nixos: Fix error in assertion (introduced by #41715) --- nixos/modules/services/networking/networkmanager.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/networkmanager.nix b/nixos/modules/services/networking/networkmanager.nix index 20a1f947e6da..cb776b3d5afa 100644 --- a/nixos/modules/services/networking/networkmanager.nix +++ b/nixos/modules/services/networking/networkmanager.nix @@ -313,7 +313,7 @@ in { { assertion = config.networking.wireless.enable == false; message = "You can not use networking.networkmanager with networking.wireless"; } - { assertion = dynamicHostsEnabled && cfg.useDnsmasq; + { assertion = !dynamicHostsEnabled || (dynamicHostsEnabled && cfg.useDnsmasq); message = '' To use networking.networkmanager.dynamicHosts you also need to enable networking.networkmanager.useDnsmasq