From 9ba533ee4a68db8afda83b6f6584424c1aee8b76 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Mon, 15 Feb 2016 03:37:45 +0100 Subject: unbound service: add types to options --- nixos/modules/services/networking/unbound.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nixos/modules/services/networking/unbound.nix') diff --git a/nixos/modules/services/networking/unbound.nix b/nixos/modules/services/networking/unbound.nix index 677cc2ce0c3..bad0d2d4e85 100644 --- a/nixos/modules/services/networking/unbound.nix +++ b/nixos/modules/services/networking/unbound.nix @@ -39,26 +39,31 @@ in enable = mkOption { default = false; + type = types.bool; description = "Whether to enable the Unbound domain name server."; }; allowedAccess = mkOption { default = ["127.0.0.0/24"]; + type = types.listOf types.str; description = "What networks are allowed to use unbound as a resolver."; }; interfaces = mkOption { default = [ "127.0.0.1" "::1" ]; + type = types.listOf types.str; description = "What addresses the server should listen on."; }; forwardAddresses = mkOption { default = [ ]; + type = types.listOf types.str; description = "What servers to forward queries to."; }; extraConfig = mkOption { default = ""; + type = types.str; description = "Extra lines of unbound config."; }; -- cgit 1.4.1