diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-19 14:13:38 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2017-12-19 14:13:38 +0100 |
| commit | 32cb4e6274c269d802664dc188fcf8a0239055fe (patch) | |
| tree | c71123c2ac857ff3a5853e55251f9b8e8a8d6fa7 | |
| parent | 9fba8e923523d91caf652717fb713d37fc8445e7 (diff) | |
| download | nixos-32cb4e6274c269d802664dc188fcf8a0239055fe.tar nixos-32cb4e6274c269d802664dc188fcf8a0239055fe.tar.gz nixos-32cb4e6274c269d802664dc188fcf8a0239055fe.tar.bz2 nixos-32cb4e6274c269d802664dc188fcf8a0239055fe.tar.xz nixos-32cb4e6274c269d802664dc188fcf8a0239055fe.zip | |
…
| -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 = |
