Drupal Flake Demo Creates New Drupal Site in 133 Seconds

A wide Discover Drupal graphic uses a technical workflow diagram to show how a Drupal Flake defines development environments and separate project branches with different PHP versions. Text reads "DISCOVER DRUPAL. Nix Flakes in Practice. A Drupal Flake worked example.

Developer John Locke, founder of Freelock, demonstrated a Nix-based Drupal Flake setup that created a new Drupal site and reached its login screen in 133 seconds. The 1 August 2026 blog post presents the setup as a response to difficulties managing multiple Drupal core branches, contributed-module repositories and local testing when coding agents are involved. John describes Drupal Flake as an alternative local development model that exposes project tools directly in the shell rather than running them inside Docker containers.

Drupal Flake uses Nix flakes to define development tools and Direnv to activate the environment automatically when configured. Process Compose starts services including MariaDB, PHP-FPM and Nginx, while separate projects can run simultaneously on different HTTP ports. John notes that Nix and Direnv were already installed for the demonstration and that most Nix and Composer packages were cached, so a cold setup would take longer.

The approach is aimed at contributors who need disposable environments for different Drupal branches or contributed projects without maintaining a separate container stack for every checkout. John contrasts this with DDEV, which the post describes as a widely used Drupal local-development option but one that places project commands and services inside Docker containers. The demonstration therefore presents a different trade-off: direct shell access and reusable package caches in exchange for adopting Nix and its flake workflow.

Disclosure: This content is produced with the assistance of AI.

Note: The vision of this web portal is to help promote news and stories around the Drupal community and promote and celebrate the people and organizations in the community. We strive to create and distribute our content based on these content policy. If you see any omission/variation on this please reach out to us at #thedroptimes channel on Drupal Slack and we will try to address the issue as best we can.

Related Organizations

Upcoming Events

Latest Opportunities