From 5a6bd41afddea0be4a62fcf646f2525143f3b78e Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Sat, 7 Dec 2024 17:10:04 +0000 Subject: [PATCH] feat(architect/dns.nix): add configuration for adguard.giugl.io - Added configuration for `adguard.giugl.io` with specified DNS interfaces and location settings - Configured to use the port from `config.services.adguardhome.port` - Allowed LAN access and specified allowed networks (`tailscale.net`) --- hosts/architect/dns.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hosts/architect/dns.nix b/hosts/architect/dns.nix index 04d3761..245213a 100644 --- a/hosts/architect/dns.nix +++ b/hosts/architect/dns.nix @@ -39,8 +39,21 @@ let allDomains = config.architect.vhost // { "architect.devs.giugl.io" = { dnsInterfaces = [ "lan" "tailscale" ]; }; }; + domain = "adguard.giugl.io"; in { + architect.vhost.${domain} = with config.architect.networks; { + dnsInterfaces = [ "tailscale" "lan" ]; + locations."/" = { + port = config.services.adguardhome.port; + allowLan = true; + + allow = [ + tailscale.net + ]; + }; + }; + services = { coredns = { enable = true;