Add ~/.nix-profile/bin to the Arch paths list#244
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
\$HOME/.nix-profile/binto thepaths=()array inos/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 thePATHassembled byos/arch/.zprofile. Awhich glabfrom any login shell sourcing this file returned "not found" even though home-manager had installed it cleanly.Surfaced during the 2026-04-21
tamakiii-hddcapture → ingest round on anatolian: the globally-configured git credential helper!glab auth git-credentialforgitlab.anatolian.localfailed 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 toPATHhere is the honest one-line fix.A previous attempt (
tamakiii/myfiles#197) shimmed~/.local/bin/glab → ~/.nix-profile/bin/glabvia the myfiles install step. Closed as over-engineering once this file was pointed at — thepaths=()list exists for exactly this purpose. No shim needed.Test plan
source ~/.dotfiles/os/arch/.zprofile && which glabreturns~/.nix-profile/bin/glab(after next login on anatolian, which will pick up the new PATH).git pushtogitlab.anatolian.localsucceeds without the pass-backed inline helper workaround.os/mac/.zprofileis its own file; home-manager isn't used there.