summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/claude-remote.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/claude-remote.nix b/pkgs/claude-remote.nix
index c692be1..d8975e6 100644
--- a/pkgs/claude-remote.nix
+++ b/pkgs/claude-remote.nix
@@ -432,6 +432,9 @@ let
;;
start)
name_arg "''${1-}"
+ # before the login, the unit would be skipped, and not come back
+ test -e "$home/.claude/.credentials.json" ||
+ die "there's no login yet: runuser -l claude -c 'claude auth login' (then the remotes start)"
systemctl start "$(unit "$1")"
if ! is_static "$1"; then
echo "$1 is dynamic: it lasts, across reboots, until claude-remote stop $1."