summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2024-04-11 11:19:28 +0200
committerAlan Pearce2024-04-11 11:19:28 +0200
commit1e40964b140a9026a6ef83dcce9f443304aa8a2a (patch)
tree27151a4f0ee6edba5e7bae0b11cab4f1ab31c27a /user
parentd8a58015ece1e072ca38f8ed973d0639e6b902b3 (diff)
downloadnixfiles-1e40964b140a9026a6ef83dcce9f443304aa8a2a.tar.lz
nixfiles-1e40964b140a9026a6ef83dcce9f443304aa8a2a.tar.zst
nixfiles-1e40964b140a9026a6ef83dcce9f443304aa8a2a.zip
javascript: use new bun module
Diffstat (limited to 'user')
-rw-r--r--user/settings/development/javascript.nix15
1 files changed, 10 insertions, 5 deletions
diff --git a/user/settings/development/javascript.nix b/user/settings/development/javascript.nix
index 19c7308e..bea1f02c 100644
--- a/user/settings/development/javascript.nix
+++ b/user/settings/development/javascript.nix
@@ -2,14 +2,9 @@
 , pkgs
 , ...
 }:
-let
-  nodejs = pkgs.nodejs;
-in
 {
   home.packages =
     (with pkgs; [
-      nodejs
-      bun
       pnpm-shell-completion
       bunyan-rs
     ])
@@ -28,6 +23,16 @@ in
     NO_UPDATE_NOTIFIER = "1"; # stop npm update-notifier
   };
 
+  programs.bun = {
+    enable = true;
+    settings = {
+      run = {
+        bun = true;
+        silent = true;
+      };
+    };
+  };
+
   programs.emacs.extraPackages = epkgs: (with epkgs; [
     add-node-modules-path
     js2-mode