38 lines
792 B
Nix
38 lines
792 B
Nix
{ ... }:
|
|
{
|
|
services.adguardhome = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
mutableSettings = true;
|
|
settings = {
|
|
http.address = "0.0.0.0:0";
|
|
users = [
|
|
{
|
|
name = "mjallen";
|
|
password = "$2a$10$G07P7V1EnBQxWtMNGyfgTOTpAgr4d.uqYoG.cGSFCv9jQdiYWCsfq";
|
|
}
|
|
];
|
|
dns = {
|
|
upstream_dns = [
|
|
"https://dns10.quad9.net/dns-query"
|
|
"1.1.1.1"
|
|
"8.8.8.8"
|
|
];
|
|
bootstrap_dns = [
|
|
"9.9.9.10"
|
|
"149.112.112.10"
|
|
"2620:fe::10"
|
|
"2620:fe::fe:10"
|
|
];
|
|
upstream_mode = "load_balance";
|
|
trusted_proxies = [
|
|
"127.0.0.0/8"
|
|
"::1/128"
|
|
"10.0.1.18"
|
|
];
|
|
cache_optimistic = true;
|
|
};
|
|
};
|
|
};
|
|
}
|