diff options
-rw-r--r-- | ymir.nix | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -25,8 +25,9 @@ let | |||
25 | "ymir.nights.email" "nights.email" "www.nights.email" | 25 | "ymir.nights.email" "nights.email" "www.nights.email" |
26 | ]; | 26 | ]; |
27 | 27 | ||
28 | dnsZones = listToAttrs (flatten (mapAttrsToList dnsZone (builtins.readDir ./custom/ymir/zones))); | 28 | dnsZoneDir = ./ymir/zones; |
29 | dnsZone = fName: type: optional (type == "regular" || type == "symlink") (nameValuePair (dnsZoneName fName) (readFile (./custom/ymir/zones + fName))); | 29 | dnsZones = listToAttrs (flatten (mapAttrsToList dnsZone (builtins.readDir dnsZoneDir))); |
30 | dnsZone = fName: type: optional (type == "regular" || type == "symlink") (nameValuePair (dnsZoneName fName) (readFile (dnsZoneDir + fName))); | ||
30 | dnsZoneName = fName: concatStringsSep "." (reverseList (splitString "." (removeSuffix ".soa" fName))); | 31 | dnsZoneName = fName: concatStringsSep "." (reverseList (splitString "." (removeSuffix ".soa" fName))); |
31 | in rec { | 32 | in rec { |
32 | imports = | 33 | imports = |