From 949b5f8f219e26fde0809fc00d56a5d9e741b7a8 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Mon, 18 Nov 2024 19:57:06 +0000 Subject: [PATCH] refactor(headscale.nix): update settings structure and add comments - Updated `dns_config` to `dns` and adjusted nested fields accordingly. - Commented out default log level and base domain for clarity. - Changed `ip_prefixes` to `prefixes.v4` to match expected configuration format. --- hosts/architect/headscale.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/hosts/architect/headscale.nix b/hosts/architect/headscale.nix index 5887995..50262fc 100644 --- a/hosts/architect/headscale.nix +++ b/hosts/architect/headscale.nix @@ -26,20 +26,23 @@ in enable = true; package = headscalePkg; port = 1194; - + settings = { server_url = "https://${domain}"; - log.level = "debug"; - dns_config = { + # log.level = "debug"; + dns = { magic_dns = false; - base_domain = domain; + # base_domain = domain; override_local_dns = true; - nameservers = [ + global = [ + config.architect.networks.tailscale.devices.architect.address + ]; + nameservers.global = [ config.architect.networks.tailscale.devices.architect.address ]; }; logtail.enabled = false; - ip_prefixes = [ config.architect.networks.tailscale.net ]; + prefixes.v4 = config.architect.networks.tailscale.net; noise.private_key_path = "/var/lib/headscale/noise_private.key"; }; };