From 36a38125f33379f78a945d8571ac7191fb7c0aaa Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 19 Dec 2017 14:11:27 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ymir.nix b/ymir.nix index 5b159e83..ee7f87b8 100644 --- a/ymir.nix +++ b/ymir.nix @@ -25,8 +25,9 @@ let "ymir.nights.email" "nights.email" "www.nights.email" ]; - dnsZones = listToAttrs (flatten (mapAttrsToList dnsZone (builtins.readDir ./custom/ymir/zones))); - dnsZone = fName: type: optional (type == "regular" || type == "symlink") (nameValuePair (dnsZoneName fName) (readFile (./custom/ymir/zones + fName))); + 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))); dnsZoneName = fName: concatStringsSep "." (reverseList (splitString "." (removeSuffix ".soa" fName))); in rec { imports = -- cgit v1.2.3