Files
nixos-config/hosts/m3-helios/services/adguard.nix

26 lines
598 B
Nix
Raw Normal View History

{config, ...}: {
2024-11-16 19:58:59 +01:00
services.adguardhome = {
enable = true;
openFirewall = true;
settings = {
dns = {
port = config.m3ta.ports.get "adguardhome";
2024-11-16 19:58:59 +01:00
upstream_dns = [
"1.1.1.1"
"8.8.8.8"
];
};
2024-11-18 11:58:22 +01:00
filtering = {
rewrites = [
{
domain = "*.l.m3tam3re.com";
answer = "192.168.178.210";
}
];
};
2024-11-16 19:58:59 +01:00
};
};
networking.firewall.allowedTCPPorts = [(config.m3ta.ports.get "adguardhome")];
networking.firewall.allowedUDPPorts = [(config.m3ta.ports.get "adguardhome")];
2024-11-16 19:58:59 +01:00
}