From c2d6471e94c35d4c8cb9995f0fb27f422e5d6c28 Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Wed, 18 Feb 2026 17:33:58 +0000 Subject: [PATCH] nushell: add nix-managed paths to PATH on Darwin --- profiles/nushell.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/profiles/nushell.nix b/profiles/nushell.nix index 53af940..8649a00 100644 --- a/profiles/nushell.nix +++ b/profiles/nushell.nix @@ -1,4 +1,8 @@ -{pkgs, ...}: { +{ + lib, + pkgs, + ... +}: { programs.nushell = { enable = true; @@ -19,9 +23,15 @@ TERM_BACKGROUND = "light"; }; - extraEnv = '' - $env.LS_COLORS = (${pkgs.vivid}/bin/vivid generate catppuccin-latte) - ''; + extraEnv = + '' + $env.LS_COLORS = (${pkgs.vivid}/bin/vivid generate catppuccin-latte) + '' + + lib.optionalString pkgs.stdenv.isDarwin '' + # Nushell on Darwin doesn't source /etc/zprofile or path_helper, + # so nix-managed paths must be added explicitly. + $env.PATH = ($env.PATH | split row (char esep) | prepend "/run/current-system/sw/bin" | prepend $"($env.HOME)/.nix-profile/bin") + ''; extraConfig = '' # --- Catppuccin Latte Theme ---