mirror of
https://github.com/smg1024/nix-darwin.git
synced 2026-05-22 20:32:59 +09:00
fix: install gemini cli with npm
This commit is contained in:
parent
f1be5b3ca8
commit
7be0d2eafc
2 changed files with 12 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
|
|
@ -12,4 +13,15 @@
|
|||
home.sessionPath = [
|
||||
"${config.home.homeDirectory}/.npm/bin"
|
||||
];
|
||||
|
||||
home.activation.installGeminiCli = lib.hm.dag.entryAfter ["writeBoundary"] ''
|
||||
npm_prefix="${config.home.homeDirectory}/.npm"
|
||||
|
||||
run mkdir -p "$npm_prefix/bin"
|
||||
run env \
|
||||
HOME="${config.home.homeDirectory}" \
|
||||
NPM_CONFIG_USERCONFIG="${config.home.homeDirectory}/.npmrc" \
|
||||
PATH="${pkgs.nodejs_24}/bin:$PATH" \
|
||||
"${pkgs.nodejs_24}/bin/npm" install --global --prefix "$npm_prefix" --no-audit --no-fund @google/gemini-cli@latest
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,10 +24,6 @@
|
|||
Bitwarden = 1352778147;
|
||||
};
|
||||
|
||||
brews = [
|
||||
"gemini-cli"
|
||||
];
|
||||
|
||||
casks = [
|
||||
"arc"
|
||||
"batfi"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue