diff options
| -rw-r--r-- | ymir.nix | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -27,7 +27,9 @@ let | |||
| 27 | 27 | ||
| 28 | dnsZoneDir = ./ymir/zones; | 28 | dnsZoneDir = ./ymir/zones; |
| 29 | dnsZones = listToAttrs (flatten (mapAttrsToList dnsZone (builtins.readDir dnsZoneDir))); | 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 | dnsZone = fName: type: optional (type == "regular" || type == "symlink") (nameValuePair (dnsZoneName fName) { |
| 31 | data = readFile (dnsZoneDir + ("/" + fName)); | ||
| 32 | }); | ||
| 31 | dnsZoneName = fName: concatStringsSep "." (reverseList (splitString "." (removeSuffix ".soa" fName))); | 33 | dnsZoneName = fName: concatStringsSep "." (reverseList (splitString "." (removeSuffix ".soa" fName))); |
| 32 | in rec { | 34 | in rec { |
| 33 | imports = | 35 | imports = |
