feat: tidy shell config

This commit is contained in:
2026-01-01 20:57:54 +08:00
parent a56e9bdaf2
commit df0a21913e
6 changed files with 28 additions and 10 deletions

View File

@@ -27,7 +27,10 @@ in
registry = https://registry.npmmirror.com
'';
programs.zsh.initContent = lib.mkAfter ''
export PATH=$PATH:$HOME/.npm-global/bin
export PATH=$HOME/.npm-global/bin:$PATH
'';
programs.fish.interactiveShellInit = ''
set -gp PATH $HOME/.npm-global/bin
'';
};
my.persist.homeDirs = [

View File

@@ -38,7 +38,10 @@ in
git-fetch-with-cli = true
'';
programs.zsh.initContent = lib.mkAfter ''
export PATH=$PATH:$HOME/.cargo/bin
export PATH=$HOME/.cargo/bin:$PATH
'';
programs.fish.interactiveShellInit = ''
set -gp PATH $HOME/.cargo/bin
'';
};
my.persist.homeDirs = [

View File

@@ -18,8 +18,6 @@ in
};
config = lib.mkIf cfg.enable {
programs.zsh.enable = true;
sops.secrets.imxyy-nix-hashed-password = {
sopsFile = secrets.imxyy-nix-hashed-password;
format = "binary";