From 4f8fdae825ba81f6bb29afb9d5fe2d9d01bcb603 Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Sat, 3 Oct 2026 21:35:53 +0400 Subject: [PATCH] shell: add claude-work wrapper for the second Claude Code profile Co-Authored-By: Claude Fable 5.1 --- modules/shell.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/shell.nix b/modules/shell.nix index 770328b..c7cb482 100644 --- a/modules/shell.nix +++ b/modules/shell.nix @@ -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)