restore env, add pnpm home for nush
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{ pkgs, ... }: {
|
||||
{ config, ... }: {
|
||||
imports = [ ./fish/env.nix ];
|
||||
|
||||
home.file.".config/nushell/nu".source = ../../shell/nu;
|
||||
@@ -6,8 +6,9 @@
|
||||
nushell = {
|
||||
enable = true;
|
||||
shellAliases = { vi = "nvim"; };
|
||||
# environmentVariables = let env = import ./fish/env.nix { inherit pkgs; };
|
||||
# in env.home.sessionVariables;
|
||||
environmentVariables =
|
||||
let env = import ./fish/env.nix { inherit config; };
|
||||
in env.home.sessionVariables;
|
||||
extraConfig = ''
|
||||
source ~/.config/nushell/nu/config.nu
|
||||
let carapace_completer = {|spans|
|
||||
@@ -31,7 +32,7 @@
|
||||
}
|
||||
$env.PATH = ($env.PATH |
|
||||
split row (char esep) |
|
||||
append /usr/bin/env
|
||||
append /usr/bin/env | append $"($env.HOME)/.local/share/pnpm"
|
||||
)
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user