nushell: add nix-managed paths to PATH on Darwin

This commit is contained in:
2026-02-18 17:33:58 +00:00
parent 4e1a6d3c00
commit c2d6471e94

View File

@@ -1,4 +1,8 @@
{pkgs, ...}: { {
lib,
pkgs,
...
}: {
programs.nushell = { programs.nushell = {
enable = true; enable = true;
@@ -19,9 +23,15 @@
TERM_BACKGROUND = "light"; TERM_BACKGROUND = "light";
}; };
extraEnv = '' extraEnv =
$env.LS_COLORS = (${pkgs.vivid}/bin/vivid generate catppuccin-latte) ''
''; $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 = '' extraConfig = ''
# --- Catppuccin Latte Theme --- # --- Catppuccin Latte Theme ---