LocalIP Variable in Adguard home

This commit is contained in:
Aleksandr Lebedev 2025-10-14 00:34:33 +02:00
parent 32e166c762
commit d5920f298f

View file

@ -3,7 +3,9 @@
lib,
config,
...
}: {
}: let
localIp = "192.168.178.129";
in {
services.adguardhome = {
enable = true;
host = "127.0.0.1";
@ -21,7 +23,7 @@
bind_hosts = [
"127.0.0.1"
"::1"
"192.168.178.129"
localIp
];
upstream_dns = [
"94.140.14.14"
@ -43,7 +45,7 @@
safe_search = {enabled = false;};
rewrites =
map (url: {
answer = "192.168.178.129";
answer = localIp;
domain = url;
}) [
"kylekrein.com"