shell.nix.md

shell.nix

NIX_PATHThe legacy Nix search path supplies `<nixpkgs>`. Modern flakes do not use this lookup.
{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
  packages = with pkgs; [
    git
    nodejs
  ];

  shellHook = ''
    echo "Nix shell ready"
  '';
}

Activate the shell

$ nix-shell

Share your thoughts