39 lines
890 B
Nix
39 lines
890 B
Nix
{
|
|
services.adguardhome = {
|
|
enable = true;
|
|
mutableSettings = false;
|
|
port = 23489;
|
|
settings = {
|
|
dhcp.enabled = false;
|
|
dns = {
|
|
upstream_dns = [
|
|
"quic://dns.nextdns.io"
|
|
"https://cloudflare-dns.com/dns-query"
|
|
"tls://unfiltered.adguard-dns.com"
|
|
"https://dns10.quad9.net/dns-query"
|
|
];
|
|
bind_hosts = ["100.115.105.144"];
|
|
bootstrap_dns = ["1.1.1.1" "8.8.8.8"];
|
|
};
|
|
filtering = {
|
|
rewrites = [
|
|
{
|
|
domain = "*.hopper.xun.host";
|
|
answer = "100.115.105.144";
|
|
}
|
|
{
|
|
domain = "hopper.xun.host";
|
|
answer = "100.115.105.144";
|
|
}
|
|
];
|
|
};
|
|
filters = [
|
|
{
|
|
name = "OISD (Big)";
|
|
url = "https://big.oisd.nl";
|
|
enabled = true;
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|