ctucx.git: dns.nix

fork of https://github.com/kirelagin/dns.nix

commit 7740441dafc72bd4c2d7cd4cdeb73b9fdb5a2ee8
parent b9e26974dc4b1d1451f528d4453e604ade612b15
Author: Kirill Elagin <kirelagin@gmail.com>
Date: Wed, 13 Mar 2019 03:02:10 +0100

simplify: Use removeAttrs
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dns/types/zone.nix b/dns/types/zone.nix
@@ -7,15 +7,15 @@
 { pkgs }:
 
 let
-  inherit (builtins) filter hasAttr map;
-  inherit (pkgs.lib) concatMapStringsSep concatStringsSep filterAttrs id mapAttrs
+  inherit (builtins) filter hasAttr map removeAttrs;
+  inherit (pkgs.lib) concatMapStringsSep concatStringsSep id mapAttrs
                      optionalString;
   inherit (pkgs.lib) mkOption types;
 
   record = import ./record.nix { inherit pkgs; };
 
   recordTypes = import ./records { inherit pkgs; };
-  recordTypes' = filterAttrs (n: v: n != "SOA") recordTypes;
+  recordTypes' = removeAttrs recordTypes ["SOA"];
 
   subzoneOptions = name: {
     subdomains = mkOption {