From b7be45715ee335e00070bb4124bfde1fe060bf28 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Mon, 15 Jul 2024 22:36:55 +0100 Subject: [PATCH] nixos/britway: Update headscale config --- nixos/boxes/britway/tailscale.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nixos/boxes/britway/tailscale.nix b/nixos/boxes/britway/tailscale.nix index a841f25..24bf38d 100644 --- a/nixos/boxes/britway/tailscale.nix +++ b/nixos/boxes/britway/tailscale.nix @@ -46,10 +46,12 @@ in disable_check_updates = true; unix_socket_permission = "0770"; server_url = "https://ts.${pubDomain}"; - db_type = "sqlite3"; - db_path = "/var/lib/headscale/db.sqlite3"; + database = { + type = "sqlite3"; + sqlite.path = "/var/lib/headscale/db.sqlite3"; + }; noise.private_key_path = "/var/lib/headscale/noise_private.key"; - ip_prefixes = with lib.my.c.tailscale.prefix; [ v4 v6 ]; + prefixes = with lib.my.c.tailscale.prefix; { inherit v4 v6; }; dns_config = { # Use IPs that will route inside the VPN to prevent interception # (e.g. DNS rebinding filtering)