unbound service: add types to options

This commit is contained in:
Franz Pletz 2016-02-15 03:37:45 +01:00
parent fe4b0a4801
commit 9ba533ee4a

View File

@ -39,26 +39,31 @@ in
enable = mkOption { enable = mkOption {
default = false; default = false;
type = types.bool;
description = "Whether to enable the Unbound domain name server."; description = "Whether to enable the Unbound domain name server.";
}; };
allowedAccess = mkOption { allowedAccess = mkOption {
default = ["127.0.0.0/24"]; default = ["127.0.0.0/24"];
type = types.listOf types.str;
description = "What networks are allowed to use unbound as a resolver."; description = "What networks are allowed to use unbound as a resolver.";
}; };
interfaces = mkOption { interfaces = mkOption {
default = [ "127.0.0.1" "::1" ]; default = [ "127.0.0.1" "::1" ];
type = types.listOf types.str;
description = "What addresses the server should listen on."; description = "What addresses the server should listen on.";
}; };
forwardAddresses = mkOption { forwardAddresses = mkOption {
default = [ ]; default = [ ];
type = types.listOf types.str;
description = "What servers to forward queries to."; description = "What servers to forward queries to.";
}; };
extraConfig = mkOption { extraConfig = mkOption {
default = ""; default = "";
type = types.str;
description = "Extra lines of unbound config."; description = "Extra lines of unbound config.";
}; };