diff options
Diffstat (limited to 'krebs/3modules/dns.nix')
-rw-r--r-- | krebs/3modules/dns.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/krebs/3modules/dns.nix b/krebs/3modules/dns.nix index 8acc4ccd..a268b931 100644 --- a/krebs/3modules/dns.nix +++ b/krebs/3modules/dns.nix @@ -1,12 +1,21 @@ -with import <stockholm/lib>; -{ +{ 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"; + }; } |