2024-10-08 07:00:39 +01:00
|
|
|
{ ... }:
|
2024-07-30 15:06:34 +01:00
|
|
|
{
|
2023-05-26 08:52:46 +01:00
|
|
|
services.adguardhome = {
|
|
|
|
enable = true;
|
2024-11-28 07:18:41 +00:00
|
|
|
port = 3200;
|
2023-10-22 06:07:05 +01:00
|
|
|
mutableSettings = false;
|
2024-11-28 07:18:41 +00:00
|
|
|
openFirewall = true;
|
2023-10-22 08:49:17 +01:00
|
|
|
settings = rec {
|
2023-10-22 06:45:46 +01:00
|
|
|
dns = {
|
2024-07-30 15:06:34 +01:00
|
|
|
bind_hosts = [
|
|
|
|
"127.0.0.1"
|
2024-11-28 07:33:35 +00:00
|
|
|
"192.168.0.31"
|
2024-07-30 15:06:34 +01:00
|
|
|
];
|
|
|
|
bootstrap_dns = [
|
|
|
|
"9.9.9.9"
|
|
|
|
"149.112.112.10"
|
|
|
|
];
|
2023-10-22 06:45:46 +01:00
|
|
|
ratelimit = 0;
|
|
|
|
safe_search.enabled = true;
|
2023-10-22 08:49:17 +01:00
|
|
|
rewrites = [
|
|
|
|
{
|
|
|
|
domain = "xenia.me.uk";
|
2024-11-28 07:33:35 +00:00
|
|
|
answer = "192.168.0.31";
|
2023-10-22 08:49:17 +01:00
|
|
|
}
|
|
|
|
{
|
|
|
|
domain = "*.xenia.me.uk";
|
2024-11-28 07:07:50 +00:00
|
|
|
answer = "A"; # "192.168.1.230";
|
2023-10-22 08:49:17 +01:00
|
|
|
}
|
|
|
|
];
|
2024-07-30 15:06:34 +01:00
|
|
|
blocked_services.ids = [ ];
|
|
|
|
};
|
|
|
|
filtering = {
|
|
|
|
inherit (dns) safe_search rewrites blocked_services;
|
2023-10-22 08:49:17 +01:00
|
|
|
};
|
2023-10-22 08:00:51 +01:00
|
|
|
querylog.ignored = [
|
|
|
|
"discovery.syncthing.net"
|
|
|
|
"discovery-v6.syncthing.net"
|
|
|
|
];
|
2024-07-30 15:06:34 +01:00
|
|
|
statistics = {
|
|
|
|
inherit (querylog) ignored;
|
|
|
|
};
|
2023-10-22 06:07:05 +01:00
|
|
|
};
|
2023-05-26 08:52:46 +01:00
|
|
|
};
|
|
|
|
networking.firewall = {
|
2024-07-30 15:06:34 +01:00
|
|
|
allowedTCPPorts = [ 53 ];
|
|
|
|
allowedUDPPorts = [ 53 ];
|
2023-05-26 08:52:46 +01:00
|
|
|
};
|
|
|
|
}
|