nixos: Fix error in assertion (introduced by #41715)

This commit is contained in:
Rickard Nilsson 2018-07-03 14:11:00 +02:00
parent dad6f732d5
commit 5a566004a2

View file

@ -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