A non-flake version of documentation on Nix shell can be found here.
Nix Shell
-
direnv
: manage dev environmentsdirenv
(along with nix-direnv) allows one to persist* nix development shell environments and share them seamlessly with text editors and IDEs. It obviates having to runnix develop
manually every time you open a new terminal. The moment youcd
into your project directory, the devshell is automatically activated, thanks todirenv
. -
VSCode
-
Rapid Introduction to Nix
Like
packages
, another predefined flake output isdevShells
- which is used to provide a development shell aka. a nix shell or devshell. A devshell is a sandboxed environment containing the packages and other shell environment you specify. nixpkgs provides a function calledmkShell
that can be used to create devshells. - First steps with Nix