From 7169a05ac39a05a7131f6e278a7743cc24726a89 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 6 Oct 2023 10:35:42 -0700 Subject: [PATCH] Define isNotNull --- zone-to-zonefile.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zone-to-zonefile.nix b/zone-to-zonefile.nix index 492baef..67b5670 100644 --- a/zone-to-zonefile.nix +++ b/zone-to-zonefile.nix @@ -54,6 +54,8 @@ let lines = splitString "\n" zonedata; in concatStringsSep "\n" (map formatter lines); + isNotNull = o: !isNull o; + hostToFqdn = host: if isNotNull (match ".+.$" host) then host