restore env, add pnpm home for nush

This commit is contained in:
2025-10-31 14:48:10 +09:00
parent c0a7615fc2
commit 2df69949cb
4 changed files with 17 additions and 27 deletions

View File

@@ -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"
)
'';
};