init: public
This commit is contained in:
33
modules/coding/langs/js.nix
Normal file
33
modules/coding/langs/js.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
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"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user