Files
ccl-nixos-dotfiles/modules/coding/langs/js.nix
2025-04-13 15:09:14 +08:00

34 lines
501 B
Nix

{
config,
lib,
pkgs,
...
}:
lib.my.makeSwitch {
inherit config;
optionName = "js";
optionPath = [
"coding"
"langs"
"js"
];
config' = {
my.home = {
home.packages = with pkgs; [
nodejs
nodePackages.npm
typescript
];
home.file.".npmrc".text = ''
prefix = ''${HOME}/.npm-global
registry = https://registry.npmmirror.com
'';
};
my.persist.homeDirs = [
".npm"
".npm-global"
];
};
}