about summary refs log tree commit diff
path: root/modules/services/coredns/default.nix
blob: 52d8570152d06e4a85722d9174c3938ca6b36988 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, lib, ... }:

with lib;
let
  cfg = config.modules.services.coredns;
in
{
  options.modules.services.coredns = {
    enable = mkEnableOption "coredns";
  };

  config = mkIf cfg.enable {
    services.coredns = {
      enable = true;
      config = import ./_corefile.nix;
    };
  };
}