From 73b2199fb5895e70f8a7c9ae4c8f7e1c1870906c Mon Sep 17 00:00:00 2001 From: seth Date: Mon, 30 Oct 2023 05:49:28 -0400 Subject: modules/nixos: fix tailscale autoconnect --- modules/nixos/features/tailscale.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/nixos') diff --git a/modules/nixos/features/tailscale.nix b/modules/nixos/features/tailscale.nix index cbbe2e5..d015437 100644 --- a/modules/nixos/features/tailscale.nix +++ b/modules/nixos/features/tailscale.nix @@ -48,13 +48,13 @@ in { sleep 2 # check if we are already authenticated to tailscale - status="$(${lib.getExe pkgs.tailscale} status -json | ${lib.getExe pkgs.jq}/bin/jq -r .BackendState)" + status="$(${lib.getExe pkgs.tailscale} status -json | ${lib.getExe pkgs.jq} -r .BackendState)" if [ $status = "Running" ]; then # if so, then do nothing exit 0 fi # otherwise authenticate with tailscale - ${lib.getExe pkgs.tailscale}/bin/tailscale up --ssh \ + ${lib.getExe pkgs.tailscale} up --ssh \ --auth-key "file:${config.age.secrets.tailscaleAuthKey.path}" ''; }; -- cgit v1.2.3