diff options
author | Azat Bahawi <azat@bahawi.net> | 2024-05-05 14:28:31 +0300 |
---|---|---|
committer | Azat Bahawi <azat@bahawi.net> | 2024-05-05 14:28:31 +0300 |
commit | 389becf9700d3dee7f09073ce4d235fc7c30b5c8 (patch) | |
tree | 3db9d75bd5275614fc904184c97b3133f38bc3d0 /modules/unbound.nix | |
parent | 2024-05-04 (diff) |
2024-05-05
Diffstat (limited to '')
-rw-r--r-- | modules/unbound.nix | 11 |
1 files changed, 11 insertions, 0 deletions
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 + ); + }; + }; }; } |