nushell: add nix-managed paths to PATH on Darwin
This commit is contained in:
@@ -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 ---
|
||||||
|
|||||||
Reference in New Issue
Block a user