shell: add claude-work wrapper for the second Claude Code profile

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Sergei Poljanski 2026-10-03 21:35:53 +04:00
commit 4f8fdae825
Signed by: asxpi
GPG key ID: 4F8851660FA4121B

View file

@ -73,6 +73,15 @@
'';
};
# Second Claude Code profile for the work (Teams) account. A wrapper, not a
# zsh alias, so it also works in bash (nix develop, nix-shell, scripts).
# claude comes from the native installer in ~/.local/bin.
environment.systemPackages = [
(pkgs.writeShellScriptBin "claude-work" ''
PATH="$PATH:$HOME/.local/bin" CLAUDE_CONFIG_DIR="$HOME/.claude-work" exec claude "$@"
'')
];
# Set GPG_TTY for all users
environment.shellInit = ''
export GPG_TTY=$(tty)