From 389becf9700d3dee7f09073ce4d235fc7c30b5c8 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 5 May 2024 14:28:31 +0300 Subject: 2024-05-05 --- modules/unbound.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/unbound.nix') diff --git a/modules/unbound.nix b/modules/unbound.nix index e71d48c..d10096d 100644 --- a/modules/unbound.nix +++ b/modules/unbound.nix @@ -1,5 +1,6 @@ { config, + inputs, lib, pkgs, this, @@ -221,5 +222,15 @@ in }; boot.kernel.sysctl."net.ipv4.tcp_fastopen" = mkOverride 200 3; + + topology = with cfg; { + nodes.${this.hostname}.services.unbound = { + name = "Unbound"; + icon = "${inputs.homelab-svg-assets}/assets/unbound.svg"; + details.listen.text = concatMapStringsSep "\n" (i: "${i}:53") ( + filter (i: i != "127.0.0.1" && i != "::1") config.services.unbound.settings.server.interface + ); + }; + }; }; } -- cgit v1.2.3