summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/dns.nix
blob: a268b931c070997d26e6032c7e643b4692c5668c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ config, lib, pkgs, ... }:
with import ../../lib/pure.nix { inherit lib; }; {
  options = {
    krebs.dns.providers = mkOption {
      type = types.attrsOf types.str;
    };
    krebs.dns.search-domain = mkOption {
      type = types.nullOr types.hostname;
    };
  };
  config = lib.mkIf config.krebs.enable {
    krebs.dns.providers = {
      "krebsco.de" = "zones";
      shack = "hosts";
      i = "hosts";
      r = "hosts";
      w = "hosts";
    };
    krebs.dns.search-domain = mkDefault "r";
  };
}