mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 04:57:56 +03:00
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:
parent
751bdacc9b
commit
6446d9eee8
@ -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; };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user