git.iko.soy/typeable/nixpkgs
on master help sign in
dnscrypt-proxy module: formatting
commit23a7e6e9110d9bd7e3ffd24b27c50d96ad0eaa17 authorJoachim Fasting <joachifm@fastmail.fm> dateMon 29 Aug 2016, 18:19 (10 years ago) parent86d1953
1 file changed+13−4
nixos/modules/services/networking/dnscrypt-proxy.nix+13−4
nixos/modules/services/networking/dnscrypt-proxy.nix+13−4
@@ -62,6 +62,7 @@ in
6262 of other machines (typically on the local network).
6363 '';
6464 };
65+
6566 localPort = mkOption {
6667 default = 53;
6768 type = types.int;
@@ -72,6 +73,7 @@ in
7273 to a different value; otherwise leave the default.
7374 '';
7475 };
76+
7577 resolverName = mkOption {
7678 default = "dnscrypt.eu-nl";
7779 type = types.nullOr types.str;
@@ -82,6 +84,7 @@ in
8284 extensions, and claims to not keep logs.
8385 '';
8486 };
87+
8588 resolverList = mkOption {
8689 description = ''
8790 The list of upstream DNSCrypt resolvers. By default, we use the most
@@ -94,6 +97,7 @@ in
9497 };
9598 defaultText = "pkgs.fetchurl { url = ...; sha256 = ...; }";
9699 };
100+
97101 customResolver = mkOption {
98102 default = null;
99103 description = ''
@@ -103,26 +107,30 @@ in
103107 type = types.nullOr (types.submodule ({ ... }: { options = {
104108 address = mkOption {
105109 type = types.str;
106− description = "Resolver IP address";
110+ description = "IP address";
107111 example = "208.67.220.220";
108112 };
113+
109114 port = mkOption {
110115 type = types.int;
111− description = "Resolver port";
116+ description = "Port";
112117 default = 443;
113118 };
119+
114120 name = mkOption {
115121 type = types.str;
116− description = "Provider fully qualified domain name";
122+ description = "Fully qualified domain name";
117123 example = "2.dnscrypt-cert.opendns.com";
118124 };
125+
119126 key = mkOption {
120127 type = types.str;
121− description = "Provider public key";
128+ description = "Public key";
122129 example = "B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79";
123130 };
124131 }; }));
125132 };
133+
126134 tcpOnly = mkOption {
127135 default = false;
128136 type = types.bool;
@@ -131,6 +139,7 @@ in
131139 TCP instead of UDP (on port 443). Use only if the UDP port is blocked.
132140 '';
133141 };
142+
134143 ephemeralKeys = mkOption {
135144 default = false;
136145 type = types.bool;