Skip to content

Commit

Permalink
Migrate node package from nixpkgs to homebrew (#14)
Browse files Browse the repository at this point in the history
* Migrate node package from nixpkgs to homebrew

* Apply nixpkgs-fmt
  • Loading branch information
rounakdatta authored Feb 9, 2024
1 parent 4b8be37 commit c8c1c41
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
11 changes: 6 additions & 5 deletions configs/bash/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ in
'' +
(if isDarwin then
''
export PATH="$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:$PATH"
export PATH="$PATH:/etc/profiles/per-user/${config.home.username}/bin"
export PATH="$PATH:/opt/homebrew/bin"
export JAVA_HOME=/usr/libexec/java_home
export PASSWORD_STORE_DIR="/Users/${config.home.username}/.password-store"
export PATH="$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:$PATH"
export PATH="$PATH:/etc/profiles/per-user/${config.home.username}/bin"
export PATH="$PATH:/opt/homebrew/bin"
export PATH="$PATH:/opt/homebrew/opt/node@18/bin"
export JAVA_HOME=/usr/libexec/java_home
export PASSWORD_STORE_DIR="/Users/${config.home.username}/.password-store"
''
else
''
Expand Down
13 changes: 7 additions & 6 deletions configs/fish/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,13 @@ in
'' +
(if isDarwin then
''
# this is needed, otherwise darwin-rebuild wouldn't be in PATH
fish_add_path --prepend --global "$HOME/.nix-profile/bin" /nix/var/nix/profiles/default/bin /run/current-system/sw/bin
set PATH $PATH /etc/profiles/per-user/${config.home.username}/bin
set PATH $PATH /opt/homebrew/bin
set JAVA_HOME /usr/libexec/java_home
set PASSWORD_STORE_DIR /Users/${config.home.username}/.password-store
# this is needed, otherwise darwin-rebuild wouldn't be in PATH
fish_add_path --prepend --global "$HOME/.nix-profile/bin" /nix/var/nix/profiles/default/bin /run/current-system/sw/bin
set PATH $PATH /etc/profiles/per-user/${config.home.username}/bin
set PATH $PATH /opt/homebrew/bin
set PATH $PATH /opt/homebrew/opt/node@18/bin
set JAVA_HOME /usr/libexec/java_home
set PASSWORD_STORE_DIR /Users/${config.home.username}/.password-store
''
else
''
Expand Down
1 change: 0 additions & 1 deletion hosts/ckmac/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
kotlin
shellcheck
zoom-us
nodejs_18
nixpkgs-fmt
gradle_7

Expand Down
1 change: 1 addition & 0 deletions hosts/ckmac/software.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"pulumi/tap/pulumi"
"skaffold"
"watch"
"node@18"
"yarn" # the JS package manager, not the hadoop scheduler
"azure-cli"
"ollama"
Expand Down

0 comments on commit c8c1c41

Please sign in to comment.