chore: upgrade from dnsmasq to bind

This commit is contained in:
Greg Hellings
2026-04-19 01:04:41 -05:00
parent fb4c6966af
commit 8509fff746
7 changed files with 75 additions and 19 deletions
+24
View File
@@ -0,0 +1,24 @@
{ lib, ... }:
{
hostsByNet =
net: hosts:
let
netAttr =
{
lan = "ip";
nebula = "nebulaIp";
tailscale = "ts";
}
.${net};
in
lib.mapAttrsToList
(name: value: {
inherit name;
address = builtins.getAttr netAttr value;
})
(
lib.filterAttrs (
_host: settings: (builtins.hasAttr netAttr settings) && (builtins.getAttr netAttr settings) != null
) hosts
);
}