summaryrefslogtreecommitdiff
path: root/ymir.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-12-19 14:11:27 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-12-19 14:11:27 +0100
commit36a38125f33379f78a945d8571ac7191fb7c0aaa (patch)
tree85f5031b9bcbc8a8072ba283b03c6a98304c1d69 /ymir.nix
parent800ccbb293ef3b8d4a920609f07407e1a0b66c03 (diff)
downloadnixos-36a38125f33379f78a945d8571ac7191fb7c0aaa.tar
nixos-36a38125f33379f78a945d8571ac7191fb7c0aaa.tar.gz
nixos-36a38125f33379f78a945d8571ac7191fb7c0aaa.tar.bz2
nixos-36a38125f33379f78a945d8571ac7191fb7c0aaa.tar.xz
nixos-36a38125f33379f78a945d8571ac7191fb7c0aaa.zip
Diffstat (limited to 'ymir.nix')
-rw-r--r--ymir.nix5
1 files 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
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)));
31in rec { 32in rec {
32 imports = 33 imports =