tweak: tidied modules
This commit is contained in:
parent
c3a79aa8dc
commit
32a23931eb
10 changed files with 0 additions and 38 deletions
50
modules/features/security/network-proxy.nix
Normal file
50
modules/features/security/network-proxy.nix
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
{ self, inputs, ... }:
|
||||
|
||||
{
|
||||
|
||||
# network proxy module declaration
|
||||
flake.nixosModules.network-proxy =
|
||||
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
|
||||
# encrypts your dns requests to aid in online privacy
|
||||
services.dnscrypt-proxy = {
|
||||
enable = true;
|
||||
settings = {
|
||||
ipv6_servers = true;
|
||||
require_dnssec = true;
|
||||
sources.public-resolver = {
|
||||
|
||||
# cache and keyfile for verification
|
||||
cache_file = "var/lib/dnscrypt-proxy2/public-resolvers.md";
|
||||
minisign_key = "RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3";
|
||||
|
||||
# urls to get resolver addresses from
|
||||
urls = [
|
||||
"https://raw.githubusercontent.com/DNSCrypt/dnscrypt-resolvers/master/v3/public-resolvers.md"
|
||||
"https://download.dnscrypt.info/resolvers-list/v3/public-resolvers.md"
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
# dns resolver addresses to use
|
||||
server_names = [
|
||||
"cs-sydney"
|
||||
"cs-singapore"
|
||||
"mullvad-doh"
|
||||
"mullvad-adblock-doh"
|
||||
"adfilter-syd"
|
||||
"adfilter-syd-ipv6"
|
||||
"userspace-australia"
|
||||
"userspace-australia-ipv6"
|
||||
];
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
# tor/socks ?
|
||||
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue