From 32cb4e6274c269d802664dc188fcf8a0239055fe Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 19 Dec 2017 14:13:38 +0100 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ymir.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ymir.nix b/ymir.nix index 4f8b0bbf..c482748d 100644 --- a/ymir.nix +++ b/ymir.nix @@ -27,7 +27,9 @@ let dnsZoneDir = ./ymir/zones; dnsZones = listToAttrs (flatten (mapAttrsToList dnsZone (builtins.readDir dnsZoneDir))); - dnsZone = fName: type: optional (type == "regular" || type == "symlink") (nameValuePair (dnsZoneName fName) (readFile (dnsZoneDir + ("/" + fName)))); + dnsZone = fName: type: optional (type == "regular" || type == "symlink") (nameValuePair (dnsZoneName fName) { + data = readFile (dnsZoneDir + ("/" + fName)); + }); dnsZoneName = fName: concatStringsSep "." (reverseList (splitString "." (removeSuffix ".soa" fName))); in rec { imports = -- cgit v1.2.3