Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

refactor(nix): replace shell hook with infisical dependency

Mahyar Mirrashed5e4b478b7463
diff --git a/flake.nix b/flake.nix
index ffed5545c7..3fd21f8719 100644
--- a/flake.nix
+++ b/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
- '';
};
};
}