diff --git a/modules/home/all/nix.nix b/modules/home/all/nix.nix index 4f0c8b6..52df682 100644 --- a/modules/home/all/nix.nix +++ b/modules/home/all/nix.nix @@ -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" + ]; } diff --git a/modules/home/all/zsh.nix b/modules/home/all/zsh.nix index d94e594..67eedd9 100644 --- a/modules/home/all/zsh.nix +++ b/modules/home/all/zsh.nix @@ -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;