git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/dnscrypt-proxy: remove the resolverList option
472002fJoachim Fasting
nixos/modules/services/networking/dnscrypt-proxy.nix+12−18
@@ -15,16 +15,13 @@ let
15 };
15 };
16
16
17 # Internal flag indicating whether the upstream resolver list is used.
17 # Internal flag indicating whether the upstream resolver list is used.
18− useUpstreamResolverList = cfg.resolverList == null && cfg.customResolver == null;
18+ useUpstreamResolverList = cfg.customResolver == null;
19
19
20 # The final local address.
20 # The final local address.
21 localAddress = "${cfg.localAddress}:${toString cfg.localPort}";
21 localAddress = "${cfg.localAddress}:${toString cfg.localPort}";
22
22
23 # The final resolvers list path.
23 # 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";
28
25
29 # Build daemon command line
26 # Build daemon command line
30
27
@@ -88,19 +85,11 @@ in
88 default = "dnscrypt.eu-nl";
85 default = "dnscrypt.eu-nl";
89 type = types.nullOr types.str;
86 type = types.nullOr types.str;
90 description = ''
87 description = ''
91− The name of the upstream DNSCrypt resolver to use, taken from
88+ The name of the DNSCrypt resolver to use, taken from
92− <filename>${resolverList}</filename>. The default resolver is
89+ <filename>${resolverList}</filename>. The default
93− located in Holland, supports DNS security extensions, and
90+ resolver is located in Holland, supports DNS security
94− <emphasis>claims</emphasis> to not keep logs.
91+ extensions, and <emphasis>claims</emphasis> to not
95− '';
92+ keep logs.
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.
104 '';
93 '';
105 };
94 };
106
95
@@ -319,5 +308,10 @@ in
319 (config:
308 (config:
320 let val = getAttrFromPath [ "services" "dnscrypt-proxy" "ephemeralKeys" ] config; in
309 let val = getAttrFromPath [ "services" "dnscrypt-proxy" "ephemeralKeys" ] config; in
321 optional val "-E"))
310 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+ '')
322 ];
316 ];
323}
317}