```nix { description = "Example flake with a devShell"; inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; outputs = { self, nixpkgs}: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; }; in { devShells.x86_64-linux.default = pkgs.mkShell { buildInputs = with pkgs; [ hello ]; shellHook = '' echo "Welcome to the devShell!" ''; }; }; } ``` To enter: `nix develop`. Or use nix direnv and put a `.envrc` in place with `use flake`.