Skip to content

Add ~/.nix-profile/bin to the Arch paths list#244

Merged
tamakiii merged 1 commit intomainfrom
add/nix-profile-bin-to-arch-path
Apr 21, 2026
Merged

Add ~/.nix-profile/bin to the Arch paths list#244
tamakiii merged 1 commit intomainfrom
add/nix-profile-bin-to-arch-path

Conversation

@tamakiii-doppelganger
Copy link
Copy Markdown
Contributor

Summary

  • Add \$HOME/.nix-profile/bin to the paths=() array in os/arch/.zprofile.

Why

home-manager installs user-scoped tools (glab and others declared in tamakiii/home:anatolian.local/nix/home.nix) into ~/.nix-profile/bin, but that directory wasn't on the PATH assembled by os/arch/.zprofile. A which glab from any login shell sourcing this file returned "not found" even though home-manager had installed it cleanly.

Surfaced during the 2026-04-21 tamakiii-hdd capture → ingest round on anatolian: the globally-configured git credential helper !glab auth git-credential for gitlab.anatolian.local failed in every Claude Code session, forcing a pass-backed inline helper + GitLab-API fallback for MRs !20, !21, !22, !23, !24. Adding the Nix user profile to PATH here is the honest one-line fix.

A previous attempt (tamakiii/myfiles#197) shimmed ~/.local/bin/glab → ~/.nix-profile/bin/glab via the myfiles install step. Closed as over-engineering once this file was pointed at — the paths=() list exists for exactly this purpose. No shim needed.

Test plan

  • source ~/.dotfiles/os/arch/.zprofile && which glab returns ~/.nix-profile/bin/glab (after next login on anatolian, which will pick up the new PATH).
  • git push to gitlab.anatolian.local succeeds without the pass-backed inline helper workaround.
  • Mac unaffected: os/mac/.zprofile is its own file; home-manager isn't used there.

home-manager installs user-scoped tools (glab, etc.) into
~/.nix-profile/bin but that directory wasn't on the PATH assembled by
os/arch/.zprofile. Result: `which glab` from a login shell that sources
this .zprofile would fail, even though home-manager had installed it
cleanly via tamakiii/home:anatolian.local/nix/home.nix.

Surfaced during the 2026-04-21 tamakiii-hdd capture→ingest round on
anatolian — the globally-configured git credential helper
`\!glab auth git-credential` for gitlab.anatolian.local failed with
"glab: command not found" in every Claude Code session, forcing a
pass-backed inline helper + GitLab-API fallback. Adding the Nix user
profile to PATH here is the one-line honest fix.

Mac is unaffected: home-manager isn't used on weimaraner; os/mac/.zprofile
is its own file.
@tamakiii tamakiii merged commit e05003d into main Apr 21, 2026
1 check passed
@tamakiii tamakiii deleted the add/nix-profile-bin-to-arch-path branch April 21, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants