Files
nix-config-ryan4yin/home/darwin/nushell.nix
Ryan Yin 792a7e7bfc feat: import all base configs in darwin
feat: change darwin's default shell to nushell
feat: update starship's config
2023-06-13 13:44:50 +08:00

15 lines
402 B
Nix

{ ... }: {
# nushell's PATH do not include nix-darwin's PATH
# this is a workaround to add nix-darwin's PATH to nushell's PATH
programs.nushell.extraConfig = ''
let-env PATH = ([
"~/.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)
'';
}