summaryrefslogtreecommitdiff
path: root/os/kay/modules/network
diff options
context:
space:
mode:
authorsinanmohd <sinan@sinanmohd.com>2025-10-18 16:08:39 +0530
committersinanmohd <sinan@sinanmohd.com>2025-10-18 16:08:39 +0530
commitb1231221fdf865cfc6f1b0586785a4a1e9981dd0 (patch)
treeefa64e09a9d045023a01fd81d163d691bf28b0d9 /os/kay/modules/network
parent246840e19b230f4cd22b5f40ecf94cc28255b887 (diff)
fix(os/kay/headscale): setup MagicDNSHEADmaster
Diffstat (limited to 'os/kay/modules/network')
-rw-r--r--os/kay/modules/network/headscale.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/os/kay/modules/network/headscale.nix b/os/kay/modules/network/headscale.nix
index 3fd9ff8..14fcee3 100644
--- a/os/kay/modules/network/headscale.nix
+++ b/os/kay/modules/network/headscale.nix
@@ -97,9 +97,14 @@ in
"headscale/pre_auth_key" = { };
};
- networking.firewall = {
- interfaces.ppp0.allowedUDPPorts = [ stunPort ];
- trustedInterfaces = [ config.services.tailscale.interfaceName ];
+ networking = {
+ nameservers = [ "100.100.100.100" ];
+ search = [ config.services.headscale.settings.dns.base_domain ];
+
+ firewall = {
+ interfaces.ppp0.allowedUDPPorts = [ stunPort ];
+ trustedInterfaces = [ config.services.tailscale.interfaceName ];
+ };
};
# for exit node only
boot.kernel.sysctl = {