diff --git a/home/darwin/default.nix b/home/darwin/default.nix index ae635910..2c6bd1b3 100644 --- a/home/darwin/default.nix +++ b/home/darwin/default.nix @@ -6,6 +6,7 @@ ./alacritty ./core.nix + ./nushell.nix ]; # Home Manager needs a bit of information about you and the diff --git a/home/darwin/nushell.nix b/home/darwin/nushell.nix new file mode 100644 index 00000000..708b6ae9 --- /dev/null +++ b/home/darwin/nushell.nix @@ -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) + ''; +} \ No newline at end of file