Starting using flakes for system, projects and home-manager

I saw some dotfiles, like the @freezeboy one… What is the use to the devShell?

Isn’t it to have the flakes equivalent of nix-shell with nix develop?

Yes, basically nix-shell has two behaviors:

  1. build a development shell of one (or more packages), typically from a default.nix expression. It will provision a shell with all the build tools.

  2. Using the -p flag it starts a shell with arbitrary content from the CLI.

With the new interface, these two use cases are separate into two distinct commands: nix develop and nix shell

3 Likes