diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-04-16 19:12:12 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2015-04-16 19:13:26 +0200 |
commit | a0f69df10eff2996224b0d0a4072965bf4d1877f (patch) | |
tree | d73a8eef196a6a4fb8c5692fe3f60443db0fdd94 /nixos/modules/services/networking/dnsmasq.nix | |
parent | 5a5a43ea25e6067c5ddc32e33ff31297552b4cf6 (diff) | |
download | nixpkgs-a0f69df10eff2996224b0d0a4072965bf4d1877f.tar nixpkgs-a0f69df10eff2996224b0d0a4072965bf4d1877f.tar.gz nixpkgs-a0f69df10eff2996224b0d0a4072965bf4d1877f.tar.bz2 nixpkgs-a0f69df10eff2996224b0d0a4072965bf4d1877f.tar.lz nixpkgs-a0f69df10eff2996224b0d0a4072965bf4d1877f.tar.xz nixpkgs-a0f69df10eff2996224b0d0a4072965bf4d1877f.tar.zst nixpkgs-a0f69df10eff2996224b0d0a4072965bf4d1877f.zip |
dnsmasq: Add some types
Diffstat (limited to 'nixos/modules/services/networking/dnsmasq.nix')
-rw-r--r-- | nixos/modules/services/networking/dnsmasq.nix | 11 |
1 files 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 - <literal>dnsmasq.conf</literal> + <literal>dnsmasq.conf</literal>. ''; }; @@ -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 ]; |