minus-squarestupiv@lemmy.mltoNix / NixOS@programming.dev•(home manager) can i somehow put `~/.local/bin` before `~/.nix-profile/bin` in my `$PATH`?linkfedilinkEnglisharrow-up3·edit-23 days ago programs.fish.enable = true; # Enable your shell home.sessionPath = ["$HOME/.local/bin"]; I found the option by searching for “PATH” at home-manager-options.extranix.com. home.sessionPath will generate hm-session-vars files for different shells. You can read it by cat ~/.nix-profile/etc/profile.d/hm-session-vars.sh. Enabling the shell is required for the respective hm-session-vars file to be sourced into the shell. linkfedilink
I found the option by searching for “PATH” at home-manager-options.extranix.com.
home.sessionPathwill generatehm-session-varsfiles for different shells. You can read it bycat ~/.nix-profile/etc/profile.d/hm-session-vars.sh.Enabling the shell is required for the respective
hm-session-varsfile to be sourced into the shell.