mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
34 lines
867 B
Nix
34 lines
867 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
services.adguardhome = {
|
|
enable = true;
|
|
settings = {
|
|
http = {
|
|
address = "127.0.0.1:3003";
|
|
};
|
|
dns = {
|
|
upstream_dns = [
|
|
"9.9.9.9#dns.quad9.net"
|
|
"8.8.8.8#google.com"
|
|
];
|
|
};
|
|
filtering = {
|
|
protection_enabled = true;
|
|
filtering_enabled = true;
|
|
parental_enabled = false;
|
|
safe_search = {
|
|
enabled = false;
|
|
};
|
|
};
|
|
filters = lib.map (url: { enabled = true; url = url; }) [
|
|
"https://adguardteam.github.io/HostlistsRegistry/assets/filter_9.txt"
|
|
"https://adguardteam.github.io/HostlistsRegistry/assets/filter_11.txt"
|
|
"https://adguardteam.github.io/HostlistsRegistry/assets/filter_1.txt"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|