mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-10 07:58:15 -05:00
refactor(nix): replace shell hook with infisical dependency
This commit is contained in:
15
flake.nix
15
flake.nix
@@ -15,21 +15,8 @@
|
||||
lazygit
|
||||
|
||||
nodejs_20
|
||||
infisical
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
# Define a writable directory for global npm packages
|
||||
export NPM_CONFIG_PREFIX="$HOME/.npm-global"
|
||||
export PATH="$NPM_CONFIG_PREFIX/bin:$PATH"
|
||||
|
||||
# Ensure the directory exists
|
||||
mkdir -p "$NPM_CONFIG_PREFIX"
|
||||
|
||||
# Install Infisical CLI only if it's not already installed
|
||||
if ! command -v infisical &>/dev/null; then
|
||||
npm install -g @infisical/cli
|
||||
fi
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user