nixos/nsd: Improve checking for empty dnssec zones

While at it (see previous commit), using attrNames in combination with
length is a bit verbose for checking whether the filtered attribute set
is empty, so let's just compare it against an empty attribute set.

Signed-off-by: aszlig <aszlig@nix.build>
This commit is contained in:
aszlig 2019-01-04 01:59:28 +01:00
parent 751bdacc9b
commit 6446d9eee8
No known key found for this signature in database
GPG Key ID: 684089CE67EBB691

View File

@ -435,7 +435,7 @@ let
dnssecZones = (filterAttrs (n: v: if v ? dnssec then v.dnssec else false) zoneConfigs);
dnssec = length (attrNames dnssecZones) != 0;
dnssec = dnssecZones != {};
dnssecTools = pkgs.bind.override { enablePython = true; };