nixos/system/services/adguardhome.nix

55 lines
1.1 KiB
Nix
Raw Normal View History

{
2024-01-30 14:21:50 +00:00
config,
lib,
pkgs,
...
2024-07-30 15:06:34 +01:00
}:
{
services.adguardhome = {
enable = true;
2023-10-22 06:07:05 +01:00
mutableSettings = false;
settings = rec {
http.address = "0.0.0.0:3200";
dns = {
2024-07-30 15:06:34 +01:00
bind_hosts = [
"127.0.0.1"
"192.168.1.230"
];
bootstrap_dns = [
"9.9.9.9"
"149.112.112.10"
];
ratelimit = 0;
safe_search.enabled = true;
rewrites = [
{
domain = "xenia.me.uk";
answer = "192.168.1.230";
}
{
domain = "*.xenia.me.uk";
2023-12-20 07:29:29 +00:00
answer = "192.168.1.230";
}
];
2024-07-30 15:06:34 +01:00
blocked_services.ids = [ ];
};
filtering = {
inherit (dns) safe_search rewrites blocked_services;
};
querylog.ignored = [
"discovery.syncthing.net"
"discovery-v6.syncthing.net"
"matrix.tchncs.de"
];
2024-07-30 15:06:34 +01:00
statistics = {
inherit (querylog) ignored;
};
2023-10-22 06:07:05 +01:00
};
openFirewall = true;
};
networking.firewall = {
2024-07-30 15:06:34 +01:00
allowedTCPPorts = [ 53 ];
allowedUDPPorts = [ 53 ];
};
}