blob: 4c75ea109232cf317c9a811fc09835d2ff061175 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{ config, pkgs, ... }:
let
node = pkgs.unstable.nodejs-10_x;
npmPackages = pkgs.unstable.nodePackages_10_x;
node2nixPackages = import ../packages/node2nix/default.nix {
pkgs = pkgs.unstable;
nodejs = node;
};
in
{ home.packages = (with pkgs.unstable; [
node
] ++ (
if stdenv.isDarwin
then
[
]
else
[
# npm install may use any of these
binutils
gcc
gnumake
python2
]
)) ++ (with npmPackages; [
node-gyp
node-gyp-build
node-pre-gyp
tern
node2nix
nodemon
javascript-typescript-langserver
typescript-language-server
vscode-css-languageserver-bin
vscode-html-languageserver-bin
csslint
eslint_d
prettier
typescript
node2nixPackages.bunyan
node2nixPackages.pino-pretty
node2nixPackages."pnpm-3.6.2"
node2nixPackages.prettier_d
node2nixPackages.dockerfile-language-server-nodejs
node2nixPackages.yaml-language-server
]);
home.file.".npmrc".text = ''
prefix=''${HOME}/.local
//registry.npmjs.org/:_authToken=''${NPM_AUTH_TOKEN}
always-auth=true
sign-git-tag=true
rebuild-bundle=false
update-notifier=false
registry=https://registry.npmjs.org/
'';
}
|