summaryrefslogtreecommitdiff
path: root/hosts/surtr/dns/default.nix
blob: 59214339b7d5dfae4c0ff769a7aad2c6dc2ab257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{...}:
{
  config = {
    fileSystems."/var/lib/knot" =
      { device = "surtr/safe/var-lib-knot";
        fsType = "zfs";
      };
    
    services.knot = {
      enable = true;
      extraConfig = ''
        server:
          listen: 0.0.0.0@53
          listen: ::@53

        zone:
          - domain: yggdrasil.li
            file: ${./zones/li.yggdrasil.soa}
            semantic-checks: on
      '';
    };
  };
}