ctucx.git: dns.nix

fork of https://github.com/kirelagin/dns.nix

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
# SPDX-FileCopyrightText: 2021 Kirill Elagin <https://kir.elagin.me/>
#
# SPDX-License-Identifier: MPL-2.0 or MIT

{ evalZone, zoneToString, writeTextFile }:

name: zone:
  writeTextFile {
    name = "${name}.zone";
    text = zoneToString name (evalZone name zone);
  }