From d5920f298ffeee01139bb92045d9066dd1c78683 Mon Sep 17 00:00:00 2001 From: Aleksandr Lebedev Date: Tue, 14 Oct 2025 00:34:33 +0200 Subject: [PATCH] LocalIP Variable in Adguard home --- systems/x86_64-linux/stargate/services/adguardhome.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/systems/x86_64-linux/stargate/services/adguardhome.nix b/systems/x86_64-linux/stargate/services/adguardhome.nix index e4e5eda..d700388 100644 --- a/systems/x86_64-linux/stargate/services/adguardhome.nix +++ b/systems/x86_64-linux/stargate/services/adguardhome.nix @@ -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"