Commit f6ba6e6dfcf3

Vincent Demeester <vincent@sbr.pm>
2026-01-12 16:39:44
fix(shpool-ssh-wrapper): source home-manager session vars for PATH
The claude-vertex helper script needs to execute the 'claude' command, but shpool -c executes scripts without sourcing user environment files. This resulted in "claude: not found" errors. Source the home-manager session vars file to ensure PATH is properly set before executing claude. This provides access to all home-manager installed binaries. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent c5f99d1
Changed files (1)
tools
shpool-ssh-wrapper
tools/shpool-ssh-wrapper/default.nix
@@ -6,6 +6,8 @@ let
     export CLAUDE_CODE_USE_VERTEX=1
     export CLOUD_ML_REGION=us-east5
     export ANTHROPIC_VERTEX_PROJECT_ID=itpc-gcp-pnd-pe-eng-claude
+    # Source user environment to get PATH
+    source /etc/profiles/per-user/vincent/etc/profile.d/hm-session-vars.sh
     exec claude
   '';
 in