diff options
| author | seth <[email protected]> | 2023-10-30 05:49:28 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-10-30 05:49:28 -0400 |
| commit | 73b2199fb5895e70f8a7c9ae4c8f7e1c1870906c (patch) | |
| tree | a15f978e707d93a8ba21b13f04c82ffe38256d4f /modules/nixos/features | |
| parent | 10b0df38b4286237b56ff9177f8d4c5676bfb5c1 (diff) | |
modules/nixos: fix tailscale autoconnect
Diffstat (limited to 'modules/nixos/features')
| -rw-r--r-- | modules/nixos/features/tailscale.nix | 4 |
1 files changed, 2 insertions, 2 deletions
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}" ''; }; |
