dnscrypt-proxy module: formatting

This commit is contained in:
Joachim Fasting 2016-08-29 18:19:18 +02:00
parent 86d1953ed4
commit 23a7e6e911
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08
1 changed files with 13 additions and 4 deletions

View File

@ -62,6 +62,7 @@ in
of other machines (typically on the local network). of other machines (typically on the local network).
''; '';
}; };
localPort = mkOption { localPort = mkOption {
default = 53; default = 53;
type = types.int; type = types.int;
@ -72,6 +73,7 @@ in
to a different value; otherwise leave the default. to a different value; otherwise leave the default.
''; '';
}; };
resolverName = mkOption { resolverName = mkOption {
default = "dnscrypt.eu-nl"; default = "dnscrypt.eu-nl";
type = types.nullOr types.str; type = types.nullOr types.str;
@ -82,6 +84,7 @@ in
extensions, and claims to not keep logs. extensions, and claims to not keep logs.
''; '';
}; };
resolverList = mkOption { resolverList = mkOption {
description = '' description = ''
The list of upstream DNSCrypt resolvers. By default, we use the most The list of upstream DNSCrypt resolvers. By default, we use the most
@ -94,6 +97,7 @@ in
}; };
defaultText = "pkgs.fetchurl { url = ...; sha256 = ...; }"; defaultText = "pkgs.fetchurl { url = ...; sha256 = ...; }";
}; };
customResolver = mkOption { customResolver = mkOption {
default = null; default = null;
description = '' description = ''
@ -103,26 +107,30 @@ in
type = types.nullOr (types.submodule ({ ... }: { options = { type = types.nullOr (types.submodule ({ ... }: { options = {
address = mkOption { address = mkOption {
type = types.str; type = types.str;
description = "Resolver IP address"; description = "IP address";
example = "208.67.220.220"; example = "208.67.220.220";
}; };
port = mkOption { port = mkOption {
type = types.int; type = types.int;
description = "Resolver port"; description = "Port";
default = 443; default = 443;
}; };
name = mkOption { name = mkOption {
type = types.str; type = types.str;
description = "Provider fully qualified domain name"; description = "Fully qualified domain name";
example = "2.dnscrypt-cert.opendns.com"; example = "2.dnscrypt-cert.opendns.com";
}; };
key = mkOption { key = mkOption {
type = types.str; type = types.str;
description = "Provider public key"; description = "Public key";
example = "B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79"; example = "B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79";
}; };
}; })); }; }));
}; };
tcpOnly = mkOption { tcpOnly = mkOption {
default = false; default = false;
type = types.bool; type = types.bool;
@ -131,6 +139,7 @@ in
TCP instead of UDP (on port 443). Use only if the UDP port is blocked. TCP instead of UDP (on port 443). Use only if the UDP port is blocked.
''; '';
}; };
ephemeralKeys = mkOption { ephemeralKeys = mkOption {
default = false; default = false;
type = types.bool; type = types.bool;