Update nixos/modules/services/networking/tailscale.nix

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Michael Hoang 2024-09-12 23:06:23 +10:00 committed by GitHub
parent 185948bd01
commit d25d241e38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,7 +123,7 @@ in {
};
# https://github.com/tailscale/tailscale/blob/v1.72.1/ipn/backend.go#L24-L32
script = let
statusCommand = "${lib.getExe cfg.package} status --json | ${lib.getExe pkgs.jq} -r '.BackendState'";
statusCommand = "${lib.getExe cfg.package} status --json --peers=false | ${lib.getExe pkgs.jq} -r '.BackendState'";
in ''
while [[ "$(${statusCommand})" == "NoState" ]]; do
sleep 0.5