User Avatar

Beat Hagenlocher

1y ago

Software Architect | Lifelong Learner | Workflow Person

Does your repo's Getting Started section take more than 10 minutes? Just use Nix.
@haglobah

Let's first ask ourselves: What should the Getting Started section of a project look like?

Abstractly, I think it should be something like this:

  1. git clone <repo-name> && cd <repo-name>

  2. "Install the necessary dependencies"

  3. "Run the app as intended"

And well, we all know what it can look like—I won't go into that here.


With a devShell from a Nix Flake, we can get to this:

  1. (You probably need to install Nix first: )

    curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
  2. git clone <repo-name> && cd <repo-name>

  3. nix develop

  4. "Run the app as intended"—if your flake.nix-Person did it right, nix develop should make clear how to do that.

And the best part? One person can setup this flake, once—and the 'works on my machine'-days are gone.

That's all I've got for today. See you tomorrow! 🚢 👋

The all-in-one writing platform.

Write, publish everywhere, see what works, and become a better writer - all in one place.

Trusted by 80,000+ writers