From c4b2796c75852c5b36538d375bb8980c815a3f7d Mon Sep 17 00:00:00 2001 From: Yadunand Prem Date: Thu, 15 Aug 2024 00:43:53 +0800 Subject: [PATCH] fix: tailscale key --- nixos/proxmox/iso.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/proxmox/iso.nix b/nixos/proxmox/iso.nix index 8912fc6..29f653d 100644 --- a/nixos/proxmox/iso.nix +++ b/nixos/proxmox/iso.nix @@ -20,9 +20,12 @@ in { wget ]; + environment.etc."tailscale/preAuthKey".text = tailscale_key; + services.tailscale = { enable = true; - extraUpFlags = [ "--login-server" "http://ts.yadunut.com:444" "--authkey" tailscale_key]; + extraUpFlags = [ "--login-server" "http://ts.yadunut.com:444"]; + authKeyFile = "/etc/tailscale/preAuthKey"; }; system.stateVersion = "24.05";