Server/adguard: get host ip dinamically

This commit is contained in:
Toast 2025-03-10 14:18:29 +01:00
parent 965a5eef13
commit 6be10e325a

View file

@ -1,4 +1,8 @@
{lib, ...}: let {
lib,
config,
...
}: let
domain = "adguard.everest.tailscale"; domain = "adguard.everest.tailscale";
port = 3001; port = 3001;
in { in {
@ -10,7 +14,7 @@ in {
settings = { settings = {
dns = { dns = {
bind_hosts = [ bind_hosts = [
"10.0.0.2" ((lib.lists.last config.networking.interfaces.eno1.ipv4.addresses).address)
"100.100.0.1" "100.100.0.1"
]; ];
bootstrap_dns = ["9.9.9.9"]; bootstrap_dns = ["9.9.9.9"];