24 lines
597 B
Nix
24 lines
597 B
Nix
{ config, inputs, pkgs, ... }: {
|
|
imports = [
|
|
./programs.vscode.nix
|
|
];
|
|
|
|
programs.zsh.shellAliases = {
|
|
# Always runs the latest claude-code from the flake, no local install/update needed.
|
|
claude = "nix run github:sadjow/claude-code-nix";
|
|
};
|
|
|
|
home.sessionVariables = {
|
|
# Points to the Homebrew location mentioned in your caveat
|
|
NPM_CONFIG_PREFIX = "${config.home.homeDirectory}/.npm-global";
|
|
};
|
|
|
|
home.sessionPath = [
|
|
"${config.home.homeDirectory}/.npm-global/bin"
|
|
];
|
|
|
|
home.file.".npmrc".text = ''
|
|
prefix=${config.home.homeDirectory}/.npm-global
|
|
'' ;
|
|
}
|