path:
/flake.nix
547 B | plain
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# SPDX-FileCopyrightText: 2021 Kirill Elagin <https://kir.elagin.me/>
#
# SPDX-License-Identifier: MPL-2.0 or MIT
{
description = "A Nix DSL for defining DNS zones";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
outputs = inputs: let
inherit (inputs.nixpkgs) lib;
dns = import ./dns { inherit lib; };
in {
lib = {
inherit (dns) evalZone;
inherit (dns) combinators;
inherit (dns) types;
toString = name: zone: dns.types.zoneToString name (dns.evalZone name zone);
} // dns.combinators;
};
}