apply path to all shells

This commit is contained in:
Sridhar Ratnakumar 2025-08-28 19:10:33 +05:30
parent ddd5ef7329
commit 0d5c6448eb
2 changed files with 9 additions and 7 deletions

View file

@ -1,5 +1,14 @@
{ pkgs, lib, ... }:
{
# Nix configuration is managed globally by nix-darwin.
# Prevent $HOME nix.conf from disrespecting it.
home.file."~/.config/nix/nix.conf".text = "";
# Global session path for all shells
home.sessionPath = lib.mkIf pkgs.stdenv.isDarwin [
"/etc/profiles/per-user/$USER/bin"
"/nix/var/nix/profiles/system/sw/bin"
"/usr/local/bin"
];
}

View file

@ -1,11 +1,4 @@
{ pkgs, lib, ... }:
{
home.sessionPath = lib.mkIf pkgs.stdenv.isDarwin [
"/etc/profiles/per-user/$USER/bin"
"/nix/var/nix/profiles/system/sw/bin"
"/usr/local/bin"
];
programs.zsh = {
enable = true;
autosuggestion.enable = true;