DNSCrypt: Difference between revisions

imported>Makefu
import from nixos-users
 
imported>Fadenb
m Syntaxhighlight
Line 5: Line 5:
The following snippet will enable DNSCrypt and set it as the default system resolver.
The following snippet will enable DNSCrypt and set it as the default system resolver.


<pre class="nix">{ # configuration.nix
<syntaxhighlight lang="nix">{ # configuration.nix
   services.dnscrypt-proxy = {
   services.dnscrypt-proxy = {
     enable = true;
     enable = true;
Line 12: Line 12:
     #  https://github.com/jedisct1/dnscrypt-proxy/blob/master/dnscrypt-resolvers.csv  
     #  https://github.com/jedisct1/dnscrypt-proxy/blob/master/dnscrypt-resolvers.csv  
     # or setup your own.
     # or setup your own.
     #resolverName = &quot;cs-de&quot;;
     #resolverName = "cs-de";
   };
   };
   networking.nameservers = [&quot;127.0.0.1&quot;];
   networking.nameservers = ["127.0.0.1"];
}</pre>
}</syntaxhighlight>