summaryrefslogtreecommitdiff
path: root/hosts/surtr/dns/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/surtr/dns/default.nix')
-rw-r--r--hosts/surtr/dns/default.nix23
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}