all repos — nixfiles @ f4454bfe04fde6b14c656302375e9bcac34edc92

System and user configuration, managed by nix and home-manager

javascript: simplify and update setup

Alan Pearce
commit

f4454bfe04fde6b14c656302375e9bcac34edc92

parent

62267a702699dcef06979c8481d3b0b1a5b2787f

1 file changed, 8 insertions(+), 32 deletions(-)

changed files
M user/settings/development/javascript.nixuser/settings/development/javascript.nix
@@ -3,33 +3,16 @@ , pkgs
, ... }: let - nodejs = pkgs.nodejs-18_x; + nodejs = pkgs.nodejs; in { - nixpkgs.overlays = [ - (self: super: { - node2nixPackages = super.callPackage ../../packages/node2nix { - inherit nodejs; - }; - }) - ]; home.packages = - (with pkgs; - [ + (with pkgs; [ nodejs bun - ] - ++ ( - if stdenv.isDarwin - then [ - ] - else [ - # npm install may use any of these - binutils - gnumake - gcc - ] - )) + pnpm-shell-completion + bunyan-rs + ]) ++ (with pkgs.nodePackages; [ node2nix nodemon
@@ -37,15 +20,8 @@ javascript-typescript-langserver
typescript-language-server eslint_d typescript - - node-gyp - node-gyp-build - node-pre-gyp - ]) - ++ (with pkgs.node2nixPackages; [ - pkgs.node2nixPackages."pnpm-7.12" - - pino-pretty + pnpm + npm-merge-driver ]); home.sessionVariables = {
@@ -68,7 +44,7 @@ avaw = "bunx ava --watch";
avaf = "bunx ava --fail-fast"; avafw = "bunx ava --fail-fast --watch"; avawf = "bunx ava --fail-fast --watch"; - pino = "pino-pretty"; + pino = "bunyan"; mocha = "bunx mocha"; standard = "bunx standard"; tsc = "bunx tsc";