all repos — nixfiles @ 1e40964b140a9026a6ef83dcce9f443304aa8a2a

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

javascript: use new bun module
Alan Pearce alan@alanpearce.eu
Thu, 11 Apr 2024 11:19:28 +0200
commit

1e40964b140a9026a6ef83dcce9f443304aa8a2a

parent

d8a58015ece1e072ca38f8ed973d0639e6b902b3

1 files changed, 10 insertions(+), 5 deletions(-)

jump to
M user/settings/development/javascript.nixuser/settings/development/javascript.nix
@@ -2,14 +2,9 @@ { config , pkgs
 , ...
 }:
-let
-  nodejs = pkgs.nodejs;
-in
 {
   home.packages =
     (with pkgs; [
-      nodejs
-      bun
       pnpm-shell-completion
       bunyan-rs
     ])
@@ -26,6 +21,16 @@ ]); 
   home.sessionVariables = {
     NO_UPDATE_NOTIFIER = "1"; # stop npm update-notifier
+  };
+
+  programs.bun = {
+    enable = true;
+    settings = {
+      run = {
+        bun = true;
+        silent = true;
+      };
+    };
   };
 
   programs.emacs.extraPackages = epkgs: (with epkgs; [