From a0f69df10eff2996224b0d0a4072965bf4d1877f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 16 Apr 2015 19:12:12 +0200 Subject: [PATCH] dnsmasq: Add some types --- nixos/modules/services/networking/dnsmasq.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/nixos/modules/services/networking/dnsmasq.nix b/nixos/modules/services/networking/dnsmasq.nix index 7ddabf73106..18086154b6b 100644 --- a/nixos/modules/services/networking/dnsmasq.nix +++ b/nixos/modules/services/networking/dnsmasq.nix @@ -28,6 +28,7 @@ in services.dnsmasq = { enable = mkOption { + type = types.bool; default = false; description = '' Whether to run dnsmasq. @@ -35,14 +36,16 @@ in }; resolveLocalQueries = mkOption { + type = types.bool; default = true; description = '' Whether dnsmasq should resolve local queries (i.e. add 127.0.0.1 to - /etc/resolv.conf) + /etc/resolv.conf). ''; }; servers = mkOption { + type = types.listOf types.string; default = []; example = [ "8.8.8.8" "8.8.4.4" ]; description = '' @@ -51,11 +54,11 @@ in }; extraConfig = mkOption { - type = types.string; + type = types.lines; default = ""; description = '' Extra configuration directives that should be added to - dnsmasq.conf + dnsmasq.conf. ''; }; @@ -81,7 +84,7 @@ in }; systemd.services.dnsmasq = { - description = "dnsmasq daemon"; + description = "Dnsmasq Daemon"; after = [ "network.target" "systemd-resolved.service" ]; wantedBy = [ "multi-user.target" ]; path = [ dnsmasq ];