From 0d5c6448ebc573be3ca3fc342cd9d42d049afc9d Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 28 Aug 2025 19:10:33 +0530 Subject: [PATCH] apply path to all shells --- modules/home/all/nix.nix | 9 +++++++++ modules/home/all/zsh.nix | 7 ------- 2 files changed, 9 insertions(+), 7 deletions(-) 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;