@@ -15,16 +15,13 @@ let
1515 };
1616
1717 # Internal flag indicating whether the upstream resolver list is used.
18− useUpstreamResolverList = cfg.resolverList == null && cfg.customResolver == null;
18+ useUpstreamResolverList = cfg.customResolver == null;
1919
2020 # The final local address.
2121 localAddress = "${cfg.localAddress}:${toString cfg.localPort}";
2222
2323 # The final resolvers list path.
24− resolverList =
25− if (cfg.resolverList != null)
26− then cfg.resolverList
27− else "${stateDirectory}/dnscrypt-resolvers.csv";
24+ resolverList = "${stateDirectory}/dnscrypt-resolvers.csv";
2825
2926 # Build daemon command line
3027
@@ -88,19 +85,11 @@ in
8885 default = "dnscrypt.eu-nl";
8986 type = types.nullOr types.str;
9087 description = ''
91− The name of the upstream DNSCrypt resolver to use, taken from
92− <filename>${resolverList}</filename>. The default resolver is
93− located in Holland, supports DNS security extensions, and
94− <emphasis>claims</emphasis> to not keep logs.
95− '';
96− };
97−
98− resolverList = mkOption {
99− default = null;
100− type = types.nullOr types.path;
101− description = ''
102− List of DNSCrypt resolvers. The default is to use the list of
103− public resolvers provided by upstream.
88+ The name of the DNSCrypt resolver to use, taken from
89+ <filename>${resolverList}</filename>. The default
90+ resolver is located in Holland, supports DNS security
91+ extensions, and <emphasis>claims</emphasis> to not
92+ keep logs.
10493 '';
10594 };
10695
@@ -319,5 +308,10 @@ in
319308 (config:
320309 let val = getAttrFromPath [ "services" "dnscrypt-proxy" "ephemeralKeys" ] config; in
321310 optional val "-E"))
311+
312+ (mkRemovedOptionModule [ "services" "dnscrypt-proxy" "resolverList" ] ''
313+ The current resolver listing from upstream is always used
314+ unless a custom resolver is specified.
315+ '')
322316 ];
323317}