zsh: use sessionPath

resolves #22
This commit is contained in:
Sridhar Ratnakumar 2024-09-25 16:31:22 -04:00
parent 5aca02a936
commit d9e4766561
No known key found for this signature in database

View file

@ -1,6 +1,11 @@
{ lib, pkgs, ... }:
{ pkgs, ... }:
{
home.sessionPath = [
"/etc/profiles/per-user/$USER/bin"
"/nix/var/nix/profiles/system/sw/bin"
"/usr/local/bin"
];
programs.zsh = {
enable = true;
autosuggestion.enable = true;
@ -14,8 +19,6 @@
];
envExtra = ''
export PATH=/etc/profiles/per-user/$USER/bin:/nix/var/nix/profiles/system/sw/bin:/usr/local/bin:$PATH
# Because, adding it in .ssh/config is not enough.
# cf. https://developer.1password.com/docs/ssh/get-started#step-4-configure-your-ssh-or-git-client
export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock