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