AdGuard: Migrated Docker config to nix

This commit is contained in:
2026-04-11 12:19:39 +02:00
parent a9b52f8e58
commit bd62a4f942

View File

@@ -1,7 +1,5 @@
{
config,
lib,
pkgs,
...
}:
@@ -10,7 +8,9 @@ let
adguardPort = 3000;
in
{
services.adguardhome = {
services = {
resolved.enable = false;
adguardhome = {
enable = true;
mutableSettings = true;
allowDHCP = true;
@@ -26,7 +26,10 @@ in
];
dns = {
bind_hosts = [ "0.0.0.0" ];
bind_hosts = [
"0.0.0.0"
"::"
];
port = 53;
upstream_dns = [
"https://dns10.quad9.net/dns-query"
@@ -59,6 +62,7 @@ in
icmp_timeout_msec = 1000;
};
dhcpv6 = {
range_start = "fdbb:959a:27ee::100";
lease_duration = 86400;
ra_slaac_only = false;
ra_allow_slaac = false;
@@ -126,6 +130,7 @@ in
};
};
};
};
networking.firewall = {
allowedTCPPorts = [