diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2021-05-29 16:05:38 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2021-05-29 16:05:38 +0200 |
commit | fb2407ce2363d4bbf70917aab24d3d9e988f581d (patch) | |
tree | 64357573abfe4ef5e47e210f7f0d582ce6e5b1b3 /hosts/surtr/dns/default.nix | |
parent | 48aae1ea5ae04de880d608e3b64a3f68859d6f11 (diff) | |
download | nixos-fb2407ce2363d4bbf70917aab24d3d9e988f581d.tar nixos-fb2407ce2363d4bbf70917aab24d3d9e988f581d.tar.gz nixos-fb2407ce2363d4bbf70917aab24d3d9e988f581d.tar.bz2 nixos-fb2407ce2363d4bbf70917aab24d3d9e988f581d.tar.xz nixos-fb2407ce2363d4bbf70917aab24d3d9e988f581d.zip |
knot@surtr: yggdrasil.li
Diffstat (limited to 'hosts/surtr/dns/default.nix')
-rw-r--r-- | hosts/surtr/dns/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/hosts/surtr/dns/default.nix b/hosts/surtr/dns/default.nix new file mode 100644 index 00000000..59214339 --- /dev/null +++ b/hosts/surtr/dns/default.nix | |||
@@ -0,0 +1,23 @@ | |||
1 | {...}: | ||
2 | { | ||
3 | config = { | ||
4 | fileSystems."/var/lib/knot" = | ||
5 | { device = "surtr/safe/var-lib-knot"; | ||
6 | fsType = "zfs"; | ||
7 | }; | ||
8 | |||
9 | services.knot = { | ||
10 | enable = true; | ||
11 | extraConfig = '' | ||
12 | server: | ||
13 | listen: 0.0.0.0@53 | ||
14 | listen: ::@53 | ||
15 | |||
16 | zone: | ||
17 | - domain: yggdrasil.li | ||
18 | file: ${./zones/li.yggdrasil.soa} | ||
19 | semantic-checks: on | ||
20 | ''; | ||
21 | }; | ||
22 | }; | ||
23 | } | ||