diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2016-05-10 06:33:54 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2016-05-10 07:07:58 +0200 |
commit | bd448b713944524f41a8d37cfe59d4594b536911 (patch) | |
tree | defb8f9e6065fe62bfe7b0464e732c4612bdf0a3 /nixos/modules/services/networking/dnscrypt-proxy.nix | |
parent | 346482c8d586de299ff8f457d69653917a4d62e2 (diff) | |
download | nixlib-bd448b713944524f41a8d37cfe59d4594b536911.tar nixlib-bd448b713944524f41a8d37cfe59d4594b536911.tar.gz nixlib-bd448b713944524f41a8d37cfe59d4594b536911.tar.bz2 nixlib-bd448b713944524f41a8d37cfe59d4594b536911.tar.lz nixlib-bd448b713944524f41a8d37cfe59d4594b536911.tar.xz nixlib-bd448b713944524f41a8d37cfe59d4594b536911.tar.zst nixlib-bd448b713944524f41a8d37cfe59d4594b536911.zip |
dnscrypt-proxy service: use up-to-date dnscrypt-resolvers list
The list of public proxies is updated now and again and it's probably a good idea to always work from the most recent list, rather than the one that is shipped with the release. This can be crucial in case of resolvers that are revealed to have gone rogue or otherwise have been compromised.
Diffstat (limited to 'nixos/modules/services/networking/dnscrypt-proxy.nix')
-rw-r--r-- | nixos/modules/services/networking/dnscrypt-proxy.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/dnscrypt-proxy.nix b/nixos/modules/services/networking/dnscrypt-proxy.nix index 3961088c4b07..4521f82f5db8 100644 --- a/nixos/modules/services/networking/dnscrypt-proxy.nix +++ b/nixos/modules/services/networking/dnscrypt-proxy.nix @@ -6,7 +6,12 @@ let dnscrypt-proxy = pkgs.dnscrypt-proxy; cfg = config.services.dnscrypt-proxy; - resolverListFile = "${dnscrypt-proxy}/share/dnscrypt-proxy/dnscrypt-resolvers.csv"; + # last updated: 2016-05-04 + resolverListFile = pkgs.fetchurl { + url = "https://raw.githubusercontent.com/jedisct1/dnscrypt-proxy/master/dnscrypt-resolvers.csv"; + sha256 = "07kbbisrvrqdxif3061hxj3whin3llg4nh50ln7prisi2vbd76xd"; + }; + localAddress = "${cfg.localAddress}:${toString cfg.localPort}"; daemonArgs = |