mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-14 16:42:43 +02:00
fix: nushell's PATH on darwin
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
./alacritty
|
./alacritty
|
||||||
./core.nix
|
./core.nix
|
||||||
|
./nushell.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Home Manager needs a bit of information about you and the
|
# Home Manager needs a bit of information about you and the
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{ config, ... }: {
|
||||||
|
# nix-darwin do not set PATH for nushell! so we need to do it manually
|
||||||
|
# this is a workaround to add nix's PATH to nushell
|
||||||
|
programs.nushell.extraConfig = ''
|
||||||
|
let-env PATH = ([
|
||||||
|
"${config.home.homeDirectory}/bin"
|
||||||
|
"${config.home.homeDirectory}/.local/bin"
|
||||||
|
"${config.home.homeDirectory}/go/bin"
|
||||||
|
"${config.home.homeDirectory}/.nix-profile/bin"
|
||||||
|
"/etc/profiles/per-user/admin/bin"
|
||||||
|
"/run/current-system/sw/bin"
|
||||||
|
"/nix/var/nix/profiles/default/bin"
|
||||||
|
|
||||||
|
($env.PATH | split row (char esep))
|
||||||
|
] | flatten)
|
||||||
|
'';
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user