From 1f7215ebdcfed2ccdb63abf0e3561d50e719fc63 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 20 May 2026 13:56:09 +0100 Subject: feat(zsh): prepend ~/.nix-profile/bin to PATH So Home-Manager-provisioned tools shadow pacman/apt across host and VM, delivering identical tool versions from the same flake.lock. Mason bin stays for now; phase p6 of the nix migration removes it together with the Mason plugins. Phase 3 of the nix-on-host migration plan. --- dot_config/zsh/dot_zprofile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dot_config/zsh/dot_zprofile b/dot_config/zsh/dot_zprofile index c02d15a..12b40fb 100644 --- a/dot_config/zsh/dot_zprofile +++ b/dot_config/zsh/dot_zprofile @@ -8,7 +8,12 @@ __ZPROFILE_SOURCED=1 # ── PATH ────────────────────────────────────────────────────────────────────── typeset -U path # deduplicate PATH entries # shellcheck disable=SC2206 # zsh tied array; no word-splitting concerns -path=("$HOME/.local/bin" "$HOME/.local/share/nvim/mason/bin" $path) +# Order: nix-profile (Home-Manager-provisioned tools) wins over the system +# package manager so the same HM flake delivers the same tool versions on +# both host (Arch) and VM (Ubuntu). ~/.local/bin keeps room for ad-hoc +# user scripts; mason bin stays during the Mason→nix transition (phase p6 +# of the nix migration removes it). +path=("$HOME/.nix-profile/bin" "$HOME/.local/bin" "$HOME/.local/share/nvim/mason/bin" $path) # ── XDG Base Directories ───────────────────────────────────────────────────── export XDG_CONFIG_HOME="$HOME/.config" -- cgit v1.3.1