diff options
author | Alan Pearce | 2019-10-04 16:32:12 +0200 |
---|---|---|
committer | Alan Pearce | 2019-10-04 16:32:12 +0200 |
commit | 9dad0ca18a9b689a0e119b33e18fd5bf195c7071 (patch) | |
tree | bf376f6dfa5acc806225ff9950506685c5de4d67 /user/modules | |
parent | 40aab9ce6874a9d60319058c24b475ff67adf88e (diff) | |
download | nixfiles-9dad0ca18a9b689a0e119b33e18fd5bf195c7071.tar.lz nixfiles-9dad0ca18a9b689a0e119b33e18fd5bf195c7071.tar.zst nixfiles-9dad0ca18a9b689a0e119b33e18fd5bf195c7071.zip |
Move javascript package setup to home-manager
Diffstat (limited to 'user/modules')
-rw-r--r-- | user/modules/javascript.nix | 50 | ||||
-rw-r--r-- | user/modules/satoshipay.nix | 4 |
2 files changed, 54 insertions, 0 deletions
diff --git a/user/modules/javascript.nix b/user/modules/javascript.nix new file mode 100644 index 00000000..eaae2ca1 --- /dev/null +++ b/user/modules/javascript.nix @@ -0,0 +1,50 @@ +{ 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 + ]); +} diff --git a/user/modules/satoshipay.nix b/user/modules/satoshipay.nix index 6feefbbb..ca396aad 100644 --- a/user/modules/satoshipay.nix +++ b/user/modules/satoshipay.nix @@ -6,6 +6,10 @@ let }; in { + imports = [ + ./javascript.nix + ]; + programs.git.includes = [ { condition = "gitdir:~/projects/github.com/satoshipay/"; |