macOS: Fix wrong git being in path

cf. https://github.com/nix-community/home-manager/issues/3324

Re-opens https://github.com/srid/nixos-config/issues/22
This commit is contained in:
Sridhar Ratnakumar 2022-12-04 10:15:18 -05:00
parent 0d24480ab1
commit 41bed38501

View file

@ -27,10 +27,10 @@
programs.zsh.enable = true;
# To put nix and home-manager-installed packages in PATH.
home.sessionPath = [
"/etc/profiles/per-user/$USER/bin"
"/run/current-system/sw/bin"
];
# TODO: Use sessionPath after https://github.com/nix-community/home-manager/issues/3324
programs.zsh.initExtra = ''
export PATH=/etc/profiles/per-user/$USER/bin:/run/current-system/sw/bin/:$PATH
'';
};
};
};