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